{"version":3,"file":"portal-0a7258c7a6652e8344c798821be8aa5a.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","apiV1Path","method","dataType","attemptedTransition","authenticator","expires_in","token_type","attributes","_rsvp","_oauth","extend","_utils","_runloop","_object","_array","_oauth2PasswordGrant","router","serverTokenEndpoint","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","selectProject","saveAndImportTasks","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","hrStatus","_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","humanReadableStatus","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","addTasksFromTemplate","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","normal","ganttSubGridConfigsEnabled","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","_ganttDependenciesEnabled","_ganttLabelsEnabled","_ganttCriticalPathsEnabled","_ganttNonWorkingTimeEnabled","_ganttColumnLinesEnabled","_ganttRollupsEnabled","_ganttProgressLineEnabled","_ganttParentAreaEnabled","toggleSetting","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","setEntityFeatures","newContactEmail","updateIpsContactEmail","connect","stores","selectedItmStores","requestIntegrationAjax","itmSuppliers","statusText","getIpsContactInfo","defaultEntityFeatures","getItmSuppliers","xeroCompanyId","companyId","xeroCompanyName","companyName","shortCode","allowedXeroIntegration","quickbooksUrl","xeroConnection","connection","validateEmail","ipsContactEmailErrorMessage","ipsContactEmail","_ipsContactEmail","ipsContactInfo","_ipsContactEmailErrorMessage","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","convertToLowercase","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","_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","humanReadableType","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","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","_hrStatus","rawStatus","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","getUsage","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","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","getFeaturePermissionsChangeset","entityAttributesChangeSet","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","_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","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-lowercase.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/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/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-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","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.apiV1Path}/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            'bill.allocatingItemsInXBills'\n            number=this.numberOfInvoices\n            item=(pluralize @items.length 'Item')\n          }}\n        {{else}}\n          {{t 'bill.allocatingItems' item=(pluralize @items.length 'Item')}}\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                'bill.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'bill.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{t 'settings.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 'bill.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 'bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateXeroAccounts\n              icon='sync'\n              text=(t 'bill.Click to update Xero accounts')\n              isLoading=@isXeroFetching\n              loadingText=(t '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 'bill.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'bill.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                'bill.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'bill.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 'bill.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 '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 'bill.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'bill.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 'bill.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          'bill.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'}} &amp; {{t 'bill.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 'bill.accept'}}\n              &amp;\n              {{t 'bill.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\": \"8xAagXKF\",\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],[\\\"bill.allocatingItemsInXBills\\\"],[[\\\"number\\\",\\\"item\\\"],[[30,0,[\\\"numberOfInvoices\\\"]],[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"bill.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],[\\\"bill.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"bill.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"settings.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],[\\\"bill.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],[\\\"bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,6],\\\"sync\\\",[28,[37,5],[\\\"bill.Click to update Xero accounts\\\"],null],[30,5],[28,[37,5],[\\\"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],[\\\"bill.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"bill.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],[\\\"bill.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"bill.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],[\\\"bill.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],[\\\"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],[\\\"bill.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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,\\\" & \\\"],[1,[28,[35,5],[\\\"bill.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],[\\\"bill.accept\\\"],null]],[1,\\\"\\\\n            &\\\\n            \\\"],[1,[28,[35,5],[\\\"bill.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 '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 'bill.Add attachments'}}\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\": \"5mGQM0gE\",\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],[\\\"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],[\\\"bill.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('bill.attachment') : this.intl.t('bill.attachments');\n      return this.args.attachments.length ? `${this.args.attachments.length} ${attachment}` : this.intl.t('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('bill.attachment') : this.intl.t('bill.attachments');\n      return this.numberOfAttachments ? `${this.numberOfAttachments} ${attachment}` : this.intl.t('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 'bill.Attachment has been saved'}}\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 '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 '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\": \"v6JOPQyQ\",\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],[\\\"bill.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],[\\\"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],[\\\"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('notification.fileIsLargerThan20MBAndWillNotBeUploaded');\n        } else if (this.filePreviouslyAttached(hash)) {\n          fc.isInvalid = true;\n          fc.invalidMessage = this.intl.t('notification.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('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('notification.somethingWentWrongWhileSavingAttachments');\n        this.notifications.error({\n          error,\n          message: this.intl.t('notification.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 'bill.Visible to project clients'}}\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\": \"Bz1NlwEZ\",\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],[\\\"bill.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('notification.Successfully saved attachment settings'));\n            this.args.onCloseAction();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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 'settings.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 'settings.whenTheyAreBilledToTheMerchantAccount'}}\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 'settings.Select an account'}}</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 'settings.whenTheBillsPurchaseOrderFieldIs'}}\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 'settings.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\": \"q4aUi3v4\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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        {{t (concat 'common.' @bill.humanReadableType)}}\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          {{t (concat 'common.' @bill.humanReadableStatus)}}\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 '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 '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\": \"2eLdSIcX\",\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,[28,[35,6],[[28,[37,7],[\\\"common.\\\",[30,1,[\\\"humanReadableType\\\"]]],null]],null]],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"billNumber\\\"]]],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n          \\\",[52,[28,[37,9],[[30,1,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\",[52,[28,[37,9],[[30,1,[\\\"status\\\"]],\\\"ACCEPTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n          \\\",[52,[28,[37,9],[[30,1,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n          \\\",[52,[28,[37,9],[[30,1,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"bg-success\\\"],\\\"\\\\n          \\\",[52,[28,[37,9],[[30,1,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\"]]],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[[28,[37,7],[\\\"common.\\\",[30,1,[\\\"humanReadableStatus\\\"]]],null]],null]],[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,6],[\\\"components.bill-editor.View duplicate bills\\\"],null]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"viewDuplicateBills\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"badge fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,12],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,6],[\\\"components.bill-editor.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[8,[39,12],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@attachments\\\",\\\"@disabled\\\",\\\"@onViewAttachment\\\",\\\"@onUploadComplete\\\",\\\"@onDeleteAttachment\\\"],[[30,0,[\\\"allAttachments\\\"]],[28,[37,15],[[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,16],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"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,6],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],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,6],[\\\"common.Saving\\\"],null],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,17],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,20],[[28,[37,20],[[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,11],[\\\"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,6],[\\\"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,22],[[16,\\\"title\\\",[28,[37,23],[\\\"ArrowUp\\\",[28,[37,6],[\\\"components.bill-editor.Previous bill\\\"],null]],null]],[4,[38,11],[\\\"click\\\",[30,0,[\\\"previousBill\\\"]]],null],[4,[38,24],[\\\"ArrowUp\\\",[30,0,[\\\"triggerPreviousBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-up\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,22],[[16,\\\"title\\\",[28,[37,23],[\\\"ArrowDown\\\",[28,[37,6],[\\\"components.bill-editor.Next bill\\\"],null]],null]],[4,[38,11],[\\\"click\\\",[30,0,[\\\"nextBill\\\"]]],null],[4,[38,24],[\\\"ArrowDown\\\",[30,0,[\\\"triggerNextBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"d-flex\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.bills\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,22],[[16,\\\"title\\\",[28,[37,23],[\\\"Esc\\\",[28,[37,6],[\\\"components.bill-editor.Back to list\\\"],null]],null]],[4,[38,24],[\\\"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,6],[\\\"common.Issuer\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,29],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataAction\\\",\\\"@showNoDataActionWithResults\\\",\\\"@initialSearchTerm\\\",\\\"@placeholder\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setIssuerContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],[30,0,[\\\"createIssuerContact\\\"]],true,[30,1,[\\\"issuer\\\"]],[30,1,[\\\"issuer\\\"]],\\\"issuerContact\\\",[28,[37,30],[\\\"name\\\"],null],[30,0,[\\\"billForm\\\"]],[28,[37,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"issuerContact\\\"]],[[[1,\\\"          \\\"],[8,[39,25],[[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,12],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,31],[[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"mb-0\\\",\\\"select\\\",[28,[37,6],[\\\"common.Allocation type\\\"],null],\\\"allocationType\\\",true,[30,0,[\\\"billForm\\\"]],[28,[37,30],[[28,[37,32],null,[[\\\"value\\\",\\\"label\\\"],[\\\"MATERIALS\\\",[28,[37,6],[\\\"common.Materials\\\"],null]]]],[28,[37,32],null,[[\\\"value\\\",\\\"label\\\"],[\\\"SUBCONTRACTORS\\\",[28,[37,6],[\\\"common.Subcontractors\\\"],null]]]],[28,[37,32],null,[[\\\"value\\\",\\\"label\\\"],[\\\"LABOUR\\\",[28,[37,6],[\\\"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,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"setDefaultAllocationType\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"components.bill-editor.Set as default allocation type\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,31],[[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-3\\\",\\\"text\\\",[28,[37,6],[\\\"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,31],[[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1\\\",\\\"date\\\",[28,[37,6],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,31],[[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1 mx-3\\\",\\\"date\\\",[28,[37,6],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"billForm\\\"]],[28,[37,15],[[28,[37,9],[[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,33],[[24,0,\\\"col mb-0\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@inputContainerClass\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,17],[[30,0,[\\\"onSearchPurchaseOrders\\\",\\\"isRunning\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"purchaseOrders\\\"]],[28,[37,6],[\\\"purchase-order.No purchase orders\\\"],null],[30,0,[\\\"setPurchaseOrder\\\"]],[30,0,[\\\"onSearchPurchaseOrders\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,6],[\\\"common.Purchase order\\\"],null],\\\"reference\\\",[28,[37,30],[\\\"purchaseOrderNumber\\\"],null],[30,0,[\\\"billForm\\\"]],\\\"mb-1\\\",[30,0,[\\\"hasNextPurchaseOrderPage\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\"]],[28,[37,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]],[[[1,\\\"          \\\"],[8,[39,25],[[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,12],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,31],[[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[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,6],[\\\"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,17],[[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,11],[\\\"click\\\",[30,0,[\\\"deleteSelectedBillItemForms\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"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,23],[\\\"cmd+i\\\",[28,[37,6],[\\\"common.Add new item\\\"],null]],null]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[4,[38,24],[\\\"cmd+i\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"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,11],[\\\"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,6],[\\\"common.Code\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"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,6],[\\\"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,6],[\\\"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,6],[\\\"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,6],[\\\"common.Qty\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"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,6],[\\\"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,20],[[28,[37,20],[[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,11],[\\\"click\\\",[28,[37,41],[[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,42],[[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,31],[[24,5,\\\"width: 65px\\\"],[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[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,31],[[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[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,43],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,29],[[24,0,\\\"w-100\\\"]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,41],[[30,0,[\\\"setBillItemPurchaseOrderItem\\\"]],[30,3]],null],[30,0,[\\\"loadPurchaseOrderItems\\\"]],[28,[37,6],[\\\"components.bill-editor.No purchase order items\\\"],null],\\\"purchaseOrderItem\\\",[28,[37,30],[\\\"sku\\\",\\\"description\\\"],null],[30,3],[28,[37,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"purchaseOrderMatchingStatus\\\"]],[[[1,\\\"                      \\\"],[8,[39,44],[[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,31],[[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[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,31],[[24,5,\\\"width: 60px\\\"],[16,\\\"disabled\\\",[28,[37,17],[[28,[37,15],[[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,45],[[28,[37,46],[[28,[37,17],[[30,3,[\\\"quantity\\\"]],0],null],\\\"*\\\",[28,[37,17],[[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,47],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,6],[\\\"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,6],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,45],[[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,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,41],[[28,[37,48],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"\\\\n            …\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"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,17],[[28,[37,15],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[28,[37,15],[[30,0,[\\\"hasUnsavedChanges\\\"]]],null]],null]],[16,\\\"title\\\",[28,[37,23],[\\\"cmd+s\\\",\\\"Save\\\"],null]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"cmd+s\\\",[30,0,[\\\"triggerSave\\\"]]],null],[4,[38,11],[\\\"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,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"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,11],[\\\"click\\\",[28,[37,41],[[28,[37,48],[[30,0,[\\\"showBillHistory\\\"]]],null],[28,[37,15],[[30,0,[\\\"showBillHistory\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"components.bill-editor.Bill history\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],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,50],null,[[\\\"@resourceId\\\"],[[30,1,[\\\"id\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"]],[]]],[8,[39,51],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]],[28,[37,6],[\\\"common.Delete bill\\\"],null],[28,[37,6],[\\\"components.bill-editor.Do you want to delete this bill\\\"],null],[28,[37,6],[\\\"common.Delete bill\\\"],null],[28,[37,6],[\\\"common.Deleting\\\"],null],[28,[37,2],[[30,0,[\\\"deleteBill\\\"]]],null],[28,[37,41],[[28,[37,48],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,6],[\\\"estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"billTypeChangeConfirmation\\\"]],[[[1,\\\"  \\\"],[8,[39,53],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,41],[[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,6],[\\\"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,6],[\\\"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,11],[\\\"click\\\",[28,[37,41],[[30,0,[\\\"handleBillTypeChange\\\"]],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 ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,41],[[30,0,[\\\"handleBillTypeChange\\\"]],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Confirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billTypeResponseHandlerVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,55],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"billResponses\\\"]],[30,0,[\\\"onBillTypeResponseHandlerCancel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocating\\\"]],[[[1,\\\"  \\\"],[8,[39,56],null,[[\\\"@bills\\\",\\\"@onClose\\\",\\\"@billStatus\\\"],[[28,[37,30],[[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,22],[[4,[38,11],[\\\"click\\\",[28,[37,41],[[28,[37,48],[[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,57],[[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,12],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"      \\\"],[8,[39,58],null,[[\\\"@attachment\\\"],[[30,0,[\\\"activeAttachment\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,59],[[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,22],[[4,[38,11],[\\\"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,46],[[30,0,[\\\"attachmentIndex\\\"]],\\\"+\\\",1],null]],[1,\\\"\\\\n          /\\\\n          \\\"],[1,[30,0,[\\\"allAttachments\\\",\\\"length\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,22],[[4,[38,11],[\\\"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,53],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[28,[37,41],[[28,[37,48],[[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,6],[\\\"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,11],[\\\"click\\\",[28,[37,41],[[28,[37,48],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,6],[\\\"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,11],[\\\"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,6],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"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\\\",\\\"t\\\",\\\"concat\\\",\\\"span\\\",\\\"eq\\\",\\\"button\\\",\\\"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('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 '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 '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 '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 '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\": \"8+G1+VDT\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"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.humanReadableStatus}}\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.humanReadableType}}\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 'estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  */\n  {\n    \"id\": \"U+ms5HHv\",\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,[\\\"humanReadableStatus\\\"]]],[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,[\\\"humanReadableType\\\"]]],[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],[\\\"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            '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\": \"tdIeiNGT\",\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],[\\\"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('notification.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 'stage-payments.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 'stage-payments.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\": \"Elyw4mhB\",\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],[\\\"stage-payments.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],[\\\"stage-payments.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('notification.Successfully saved checklist'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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 '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 'bill.Browse files'}}\n        </button>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"TBcO51zI\",\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],[\\\"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],[\\\"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('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            '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            'settings.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 'bill.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 '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 '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 'bill.000 - Account'}}\n                  @allowClear={{true}}\n                  @loadingMessage={{t 'bill.Loading Xero accounts'}}\n                  @noMatchesMessage={{t 'bill.No Xero accounts found'}}\n                  @afterOptionsComponent={{component\n                    'power-select-after-options-button'\n                    onClick=this.updateXeroAccounts\n                    icon='sync'\n                    text=(t 'bill.Click to update Xero accounts')\n                    isLoading=this.xeroFetching\n                    loadingText=(t '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 '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 'bill.No items to show'}}</td></tr>\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"kvtxKGFx\",\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],[\\\"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],[\\\"settings.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],[\\\"bill.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],[\\\"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],[\\\"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],[\\\"bill.000 - Account\\\"],null],true,[28,[37,4],[\\\"bill.Loading Xero accounts\\\"],null],[28,[37,4],[\\\"bill.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],[\\\"bill.Click to update Xero accounts\\\"],null],[30,0,[\\\"xeroFetching\\\"]],[28,[37,4],[\\\"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],[\\\"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],[\\\"bill.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 '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 '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 '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 '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\": \"rjjll0c6\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"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('notification.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('notification.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      const key = this.isMetered ? 'usageOfIncluded' : 'usageOfAllowance';\n      return this.intl.t(`components.ips-usage.${key}`, {\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 'settings.Job list'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='ownTakeoff'\n      @title={{t 'settings.Own takeoff'}}\n    />\n  \n    <sidebar.Title @title='Configuration' />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='materialRate'\n      @title={{t 'settings.Material rate'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='flatRateResource'\n      @title={{t 'settings.Flat rate resource'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='miscTemplate'\n      @title={{t 'settings.Misc template'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='labourFactor'\n      @title={{t 'settings.Labour factor'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='overheadTemplates'\n      @title={{t 'settings.Overhead templates'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='workgangPositions'\n      @title={{t 'settings.Workgang positions'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='workgangs'\n      @title={{t 'settings.Workgangs'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='subcontractorList'\n      @title={{t 'settings.Subcontractor list'}}\n    />\n  </Sidebar>\n  */\n  {\n    \"id\": \"g7P7zZZz\",\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],[\\\"settings.Job list\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"ownTakeoff\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Material rate\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"flatRateResource\\\",[28,[37,6],[\\\"settings.Flat rate resource\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"miscTemplate\\\",[28,[37,6],[\\\"settings.Misc template\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"labourFactor\\\",[28,[37,6],[\\\"settings.Labour factor\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"overheadTemplates\\\",[28,[37,6],[\\\"settings.Overhead templates\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"workgangPositions\\\",[28,[37,6],[\\\"settings.Workgang positions\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"workgangs\\\",[28,[37,6],[\\\"settings.Workgangs\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"subcontractorList\\\",[28,[37,6],[\\\"settings.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 '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 '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\": \"bnAPadxB\",\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],[\\\"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],[\\\"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 'report.Financial breakdown'}}\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 'settings.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 'report.Work in progress'}}\n        />\n      {{/if}}\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"65PzGJz2\",\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],[\\\"report.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],[\\\"settings.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],[\\\"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 '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 'settings.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\": \"KxU/OJi8\",\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],[\\\"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],[\\\"settings.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('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('settings.Auto mapping')\n      });\n      if (this.canViewIntegrationsTab) companySection.items.push({\n        route: 'entity.settings.integrations',\n        icon: 'plug',\n        name: this.intl.t('settings.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('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('settings.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('settings.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('settings.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('settings.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('settings.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('settings.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('settings.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('settings.Workgangs')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'wrench',\n        model: 'subcontractorList',\n        name: this.intl.t('settings.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 'bill.Editing information for'}}\n            <i>{{this.newSupplier.name}}</i>…\n          {{else}}\n            {{t 'bill.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 'settings.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 'settings.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 'settings.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 'bill.wouldYouLikeToAddInformationForThisSupplierNow'}}\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\": \"H3nracmh\",\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],[\\\"bill.Editing information for\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"i\\\"],[12],[1,[30,0,[\\\"newSupplier\\\",\\\"name\\\"]]],[13],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"bill.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"bill.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 'settings.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 'settings.Worker code'}}</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 'settings.Copied')\n                        (t 'settings.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 'settings.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\": \"wgGdG6D5\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Copied\\\"],null],[28,[37,5],[\\\"settings.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],[\\\"settings.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 '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 'settings.Up to date'}}\n        {{/if}}\n      </span>\n    {{/if}}\n    {{t 'settings.toViewYourPlacemakersAccountOrToCreateOne'}}:\n    <a\n      href='{{this.pmBaseURL}}'\n      class='link ps-1'\n      target='_blank'\n      rel='noopener noreferrer'\n    >\n      {{t '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 '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 '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 '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 '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 '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\": \"CcsBygSB\",\n    \"block\": \"[[[10,2],[14,0,\\\"mt-2 mb-0 text-muted\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[\\\"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],[\\\"settings.Up to date\\\"],null]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[1,[28,[35,1],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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('notification.PlaceMakers is disconnected'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('notification.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('notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.successfullySyncedXProductPrices', {\n                number: result.products\n              }));\n            } else {\n              this.notifications.warning(this.intl.t('notification.placemakersReturnedNoProductPriceDataForYourSelectedBranch'));\n            }\n          } catch (error) {\n            if (error.wasAuthenticationError) return;\n            this.notifications.error({\n              error,\n              message: this.intl.t('notification.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('notification.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 '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 'settings.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 'product.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 'product.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 '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\": \"bJb2umj6\",\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],[\\\"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],[\\\"settings.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],[\\\"product.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],[\\\"product.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],[\\\"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('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('notification.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('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('settings.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 '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 'product.Filter by supplier'}}</label>\n              <SearchSelector\n                @disabled={{this.isAddingProduct}}\n                @noDataMessage={{t 'settings.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 '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\": \"G0/yNBvU\",\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],[\\\"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],[\\\"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],[\\\"settings.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],[\\\"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('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 '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 'settings.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 'product.Importing products'}}…\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 'product.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 'product.uploadYourCsvFileToGenerateProductsFewerThan5000Items'}}\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            'product.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 'product.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\": \"rd2fOu47\",\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],[\\\"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],[\\\"settings.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],[\\\"product.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],[\\\"product.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],[\\\"product.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],[\\\"product.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],[\\\"product.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('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('notification.Successfully uploaded products'));\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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('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 'settings.Profit margins'}}</h3>\n  {{#if @description}}\n    <p class='mt-0'>{{@description}}</p>\n  {{/if}}\n  <PtlInput\n    @type='select'\n    @toolTip={{t\n      'settings.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit'\n    }}\n    @label={{t 'settings.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={{t\n            (concat 'common.' (convert-to-lowercase @profitMargin.profitType))\n          }}\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                {{t\n                  (concat\n                    'common.'\n                    (convert-to-lowercase @default.labourPercentage.type)\n                  )\n                }}\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          {{t\n            (concat\n              'common.' (convert-to-lowercase @default.labourPercentage.type)\n            )\n          }}\n        {{else}}\n          {{t 'settings.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 'settings.Additional labour margin'}}\n            @containerClass='mb-1'\n            @key='additionalLabourMargin'\n            @model={{@profitMargin}}\n            @forceValidationVisible={{@forceValidationVisible}}\n            disabled={{not this.additionalLabourIsOverridden}}\n            @description={{t 'settings.additionalLabourMarginDescription'}}\n            @inputGroupText={{t\n              (concat 'common.' (convert-to-lowercase @profitMargin.profitType))\n            }}\n          />\n        {{else}}\n          <div class='mb-1'>\n            <label class='mb-1'>{{t 'settings.Additional labour margin'}}</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                  {{t\n                    (concat\n                      'common.'\n                      (convert-to-lowercase @default.additionalLabourMargin.type)\n                    )\n                  }}\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            {{t\n              (concat\n                'common.'\n                (convert-to-lowercase @default.additionalLabourMargin.type)\n              )\n            }}\n          {{else}}\n            {{t 'settings.Set a default additional labour margin'}}\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={{t\n            (concat 'common.' (convert-to-lowercase @profitMargin.profitType))\n          }}\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                {{t\n                  (concat\n                    'common.'\n                    (convert-to-lowercase @default.materialsPercentage.type)\n                  )\n                }}\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          {{t\n            (concat\n              'common.' (convert-to-lowercase @default.materialsPercentage.type)\n            )\n          }}\n        {{else}}\n          {{t 'settings.Set a default materials profit margin'}}\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={{t\n            (concat 'common.' (convert-to-lowercase @profitMargin.profitType))\n          }}\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                {{t\n                  (concat\n                    'common.'\n                    (convert-to-lowercase @default.subcontractorsPercentage.type)\n                  )\n                }}\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          {{t\n            (concat\n              'common.'\n              (convert-to-lowercase @default.subcontractorsPercentage.type)\n            )\n          }}\n        {{else}}\n          {{t 'settings.setADefaultSubcontractorsProfitMargin'}}\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={{t\n            (concat 'common.' (convert-to-lowercase @profitMargin.profitType))\n          }}\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                {{t\n                  (concat\n                    'common.' (convert-to-lowercase @default.sumsPercentage.type)\n                  )\n                }}\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          {{t\n            (concat 'common.' (convert-to-lowercase @default.sumsPercentage.type))\n          }}\n        {{else}}\n          {{t 'settings.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\": \"n940VsZ9\",\n    \"block\": \"[[[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,1],[\\\"settings.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],[\\\"settings.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit\\\"],null],[28,[37,1],[\\\"settings.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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,3,[\\\"profitType\\\"]]],null]],null]],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,11],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,12],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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"labourPercentage\\\",\\\"type\\\"]]],null]],null]],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,14],[[24,\\\"data-test-profit-margin-form-labour-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,15],[\\\"click\\\",[28,[37,16],[[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,17],[[30,5,[\\\"labourPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,18],[[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,19],[[30,5,[\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"labourPercentage\\\",\\\"type\\\"]]],null]],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"settings.Set a default labour profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,20],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],[\\\"settings.Additional labour margin\\\"],null],\\\"mb-1\\\",\\\"additionalLabourMargin\\\",[30,3],[30,4],[28,[37,1],[\\\"settings.additionalLabourMarginDescription\\\"],null],[28,[37,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,3,[\\\"profitType\\\"]]],null]],null]],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],[\\\"settings.Additional labour margin\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,12],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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"additionalLabourMargin\\\",\\\"type\\\"]]],null]],null]],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,14],[[24,\\\"data-test-profit-margin-form-additional-labour-margin-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[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,17],[[30,5,[\\\"additionalLabourMargin\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"      \\\"],[8,[39,18],[[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,19],[[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"additionalLabourMargin\\\",\\\"type\\\"]]],null]],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,1],[\\\"settings.Set a default additional labour margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[8,[39,20],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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,3,[\\\"profitType\\\"]]],null]],null]],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,11],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,12],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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"materialsPercentage\\\",\\\"type\\\"]]],null]],null]],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,14],[[24,\\\"data-test-profit-margin-form-materials-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,15],[\\\"click\\\",[28,[37,16],[[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,17],[[30,5,[\\\"materialsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,18],[[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,19],[[30,5,[\\\"materialsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"materialsPercentage\\\",\\\"type\\\"]]],null]],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"settings.Set a default materials profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,20],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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,3,[\\\"profitType\\\"]]],null]],null]],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,11],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,12],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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null]],null]],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,14],[[24,\\\"data-test-profit-margin-form-subcontractors-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,15],[\\\"click\\\",[28,[37,16],[[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,17],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,18],[[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,19],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null]],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"settings.setADefaultSubcontractorsProfitMargin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,20],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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,3,[\\\"profitType\\\"]]],null]],null]],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,11],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,12],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,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"sumsPercentage\\\",\\\"type\\\"]]],null]],null]],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,14],[[24,\\\"data-test-profit-margin-form-sums-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,15],[\\\"click\\\",[28,[37,16],[[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,17],[[30,5,[\\\"sumsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,18],[[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,19],[[30,5,[\\\"sumsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[[28,[37,8],[\\\"common.\\\",[28,[37,9],[[30,5,[\\\"sumsPercentage\\\",\\\"type\\\"]]],null]],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"settings.Set a default sums profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,20],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\\\",\\\"concat\\\",\\\"convert-to-lowercase\\\",\\\"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                {{t (concat 'common.' (convert-to-title-case @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              {{t (concat 'common.' (convert-to-title-case @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\": \"157skjIM\",\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,10],[[28,[37,13],[\\\"common.\\\",[28,[37,14],[[30,3,[\\\"status\\\"]]],null]],null]],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,16],[\\\"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,10],[[28,[37,13],[\\\"common.\\\",[28,[37,14],[[30,3,[\\\"status\\\"]]],null]],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"duplicateProjectChangeset\\\"]],[[[1,\\\"  \\\"],[8,[39,17],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,18],[[28,[37,19],[[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,21],[[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,22],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,21],[[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,22],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,21],[[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,22],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,21],[[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,22],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,21],[[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,22],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,21],[[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,22],[[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,16],[\\\"click\\\",[28,[37,18],[[28,[37,19],[[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,16],[\\\"click\\\",[28,[37,24],[[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\\\",\\\"concat\\\",\\\"convert-to-title-case\\\",\\\"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 'product.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 '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 '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\": \"XdsRFZGd\",\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],[\\\"product.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],[\\\"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],[\\\"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('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('settings.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 'product.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 '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\": \"/DzzM3GJ\",\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],[\\\"product.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],[\\\"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('notification.Product already exists'));\n            } else {\n              this.notifications.error({\n                message: this.intl.t('notification.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('purchase-order.Remaining Qty'),\n        colClass: 'text-right'\n      }, {\n        value: this.intl.t('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('purchase-order.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('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 'promotion.Click here'}}:\n            {{t 'promotion.getAFriendToRegisterAndWeWillGiveYouAXPrezzyCard'}}\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 'promotion.Referral offer'}}\n          </h3>\n        </div>\n        <div class='modal-body'>\n          <p>\n            {{t 'promotion.areYouSureYouWantToDismissThisReferralOffer'}}\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 'promotion.Remove the offer'}}\n          </button>\n        </div>\n      </ModalDialog>\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"CtXsQAK7\",\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],[\\\"promotion.Click here\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,9],[\\\"promotion.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],[\\\"promotion.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],[\\\"promotion.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],[\\\"promotion.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 'report-builder.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 'report-builder.taskProject'}}</th>\n                  <th>{{t '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\": \"sGGVLe8d\",\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],[\\\"report-builder.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],[\\\"report-builder.taskProject\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"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 'report-builder.Contract worker'}}\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 '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 'report-builder.Edit timesheet'}}\n                    </LinkTo>\n                  </td>\n                </tbody>\n              {{/each}}\n            </table>\n          </td>\n        </tr>\n      {{/if}}\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"o41CWbmD\",\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],[\\\"report-builder.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],[\\\"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],[\\\"report-builder.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      {{t (concat 'common.' 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\": \"Cebl2deZ\",\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],[[28,[37,9],[\\\"common.\\\",[30,0,[\\\"value\\\"]]],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,11],[[28,[37,11],[[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,12],[[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,14],[[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,11],[[28,[37,11],[[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,16],[\\\"click\\\",[28,[37,17],[[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\\\",\\\"t\\\",\\\"concat\\\",\\\"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 'report-builder.Export options'}}</h3>\n            <p>\n              {{t\n                'report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t '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 'report-builder.markSelectedItemsAsReportedOnExport'}}\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 'settings.Logo'}}</h3>\n            <p>\n              {{t\n                'report-builder.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 'report-builder.Report text'}}</h3>\n            <p>\n              {{t 'report-builder.This text will appear on the report'}}\n              <a\n                class='link'\n                target='_blank'\n                href='https://en.wikipedia.org/wiki/Markdown#Example'\n                rel='noopener noreferrer'\n              >{{t 'report-builder.Markdown'}}</a>\n              {{t 'report-builder.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 'report-builder.Section breakdowns'}}</h3>\n            <p>{{t\n                'report-builder.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 'report-builder.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 'report-builder.First break down by'}}…\n                  {{else}}\n                    …{{t '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 '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 'report-builder.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 'report-builder.Subcontractor bills'}}</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 'report-builder.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 'report-builder.marginMarkup'}}</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 'report-builder.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              'report-builder.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 'report-builder.Labour bills'}}</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\": \"SzLc5S9t\",\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],[\\\"report-builder.Export options\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"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],[\\\"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],[\\\"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],[\\\"settings.Logo\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"report-builder.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],[\\\"report-builder.Report text\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"report-builder.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],[\\\"report-builder.Markdown\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"report-builder.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],[\\\"report-builder.Section breakdowns\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,[28,[35,4],[\\\"report-builder.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],[\\\"report-builder.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],[\\\"report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  …\\\"],[1,[28,[35,4],[\\\"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],[\\\"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],[\\\"report-builder.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],[\\\"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],[\\\"report-builder.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],[\\\"report-builder.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],[\\\"report-builder.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],[\\\"report-builder.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],[\\\"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('notification.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('notification.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('notification.theSelectedLogoFileHasAnInvalidFormatCommonImageFormatsSuchAsJpegPngAndGifAreAccepted'));\n              return;\n            }\n            if (file.size > MAX_FILE_SIZE) {\n              this.notifications.info(this.intl.t('notification.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 'stage-payments.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 'stage-payments.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 '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 '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\": \"kt9GmAHS\",\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],[\\\"stage-payments.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],[\\\"stage-payments.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],[\\\"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],[\\\"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('notification.Successfully saved included tasks'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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 'bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate'}}\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 '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              '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 'bill.Invoice was auto mapped'}}\n          />\n        {{/if}}\n      </div>\n    </td>\n  {{/if}}\n  */\n  {\n    \"id\": \"xnlaWU07\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"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 'bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate'}}\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 '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 '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 'bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage'}}\n        data-test-xero-icon\n      />\n    {{/if}}\n  \n    {{#if this.invoice.isAutoMapped}}\n      <IntegrationIcon\n        @autoMapped={{true}}\n        @title={{t '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\": \"vBLj0LGE\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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 '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\": \"xFbjlo/i\",\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],[\\\"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('task.Upload file'),\n        onClick: () => this.activePage = this.uploadPage\n      }, {\n        pageTitle: this.intl.t('task.Assign items'),\n        lastCrumb: true\n      }]);\n      _defineProperty(this, \"mapCrumbStack\", [{\n        pageTitle: this.intl.t('task.Upload file'),\n        onClick: () => this.activePage = this.uploadPage\n      }, {\n        pageTitle: this.intl.t('task.Assign items'),\n        onClick: () => this.activePage = this.assignPage\n      }, {\n        pageTitle: this.intl.t('task.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 'task.Group type actions'}}</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 'task.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 'task.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 'task.All labour hours'}}\n          </button>\n        </div>\n  \n        <label class='mb-1'>{{t 'task.Group proportion actions'}}</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 'task.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 'task.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 'task.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 'task.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 'task.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 item.task (t 'task.Unnamed item')}}</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 'task.Group'}}\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 '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 'task.Proportion'}}</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 'task.All labour hours'}}\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 'task.All labour'}}\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 'task.All materials'}}\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 'task.All subcontractors'}}\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 'task.All sums'}}\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 'task.remaining')\n                                (t 'task.over')\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 'task.hours'}}\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 'task.remaining')\n                                (t 'task.over')\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 'task.remaining')\n                                (t 'task.over')\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 'task.remaining')\n                                (t 'task.over')\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 'task.Remove item'}}</button>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  {{on 'click' (perform item.onAcceptItem index)}}\n                >{{t 'task.Accept item'}}</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 'task.Accept all items'}}</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 'task.Continue to next step'}}</button>\n          </div>\n        </div>\n      {{else}}\n        <p class='text-center'>\n          {{t 'task.No items could be found in this file'}}\n        </p>\n        <button\n          type='button'\n          class='btn btn-primary align-self-center mb-3'\n          {{on 'click' @onCancel}}\n        >\n          {{t 'task.Try uploading another file'}}\n        </button>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"ikI/gUjg\",\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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.All labour hours\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.remaining\\\"],null],[28,[37,6],[\\\"task.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],[\\\"task.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],[\\\"task.remaining\\\"],null],[28,[37,6],[\\\"task.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],[\\\"task.remaining\\\"],null],[28,[37,6],[\\\"task.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],[\\\"task.remaining\\\"],null],[28,[37,6],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"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],[\\\"task.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],[\\\"task.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['task.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile'] : this.translations['task.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginsOnThisProject'];\n        return explainerMessage;\n      }\n      if (this.valueType === 'quote') {\n        const explainerMessage = this.fileHasProfitMargin ? this.translations['task.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile'] : this.translations['task.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        'task.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile': intl.t('task.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile'),\n        'task.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginsOnThisProject': intl.t('task.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginsOnThisProject'),\n        'task.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile': intl.t('task.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile'),\n        'task.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginsOnThisProject': intl.t('task.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('notification.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                '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 '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 'task.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\": \"vRZXOLzY\",\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],[\\\"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],[\\\"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],[\\\"task.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('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 '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 'task.uploadYourCsvFileToGenerateTasksWithBudgetsAndQuotes'}}\n        <br />\n        <br />\n        {{t\n          'task.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\": \"YRemOwl/\",\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],[\\\"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],[\\\"task.uploadYourCsvFileToGenerateTasksWithBudgetsAndQuotes\\\"],null]],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"task.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('task.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('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('task.Labour allocation')} (%)`,\n        value: 'labourAllocationPercentage',\n        matches: ['labour allocation', '(%) labour allocation', 'labour allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('task.Labour allocation')} ($)`,\n        value: 'labourAllocationCurrency',\n        matches: ['labour allocation', '($) labour allocation', 'labour allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('task.Materials allocation')} (%)`,\n        value: 'materialsAllocationPercentage',\n        matches: ['materials allocation', '(%) materials allocation', 'materials allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('task.Materials allocation')} ($)`,\n        value: 'materialsAllocationCurrency',\n        matches: ['materials allocation', '($) materials allocation', 'materials allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('task.Subcontractors allocation')} (%)`,\n        value: 'subcontractorsAllocationPercentage',\n        matches: ['subcontractors allocation', '(%) subcontractors allocation', 'subcontractors allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('task.Subcontractors allocation')} ($)`,\n        value: 'subcontractorsAllocationCurrency',\n        matches: ['subcontractors allocation', '($) subcontractors allocation', 'subcontractors allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('task.Sums allocation')} (%)`,\n        value: 'sumsAllocationPercentage',\n        matches: ['sums allocation', '(%) sums allocation', 'sums allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('task.Sums allocation')} ($)`,\n        value: 'sumsAllocationCurrency',\n        matches: ['sums allocation', '($) sums allocation', 'sums allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('task.Contingency')} (%)`,\n        value: 'contingencyPercentage',\n        matches: ['contingency', 'cont', '(%) contingency', 'contingency (%)', '(%) cont', 'cont (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('task.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 '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 '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                  'progress.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 'progress.Progress mismatch'}}&nbsp;&nbsp;<FaIcon\n                @icon='exclamation-triangle'\n              />\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 'progress.Progress mismatch'}}&nbsp;&nbsp;<FaIcon\n                  @icon='exclamation-triangle'\n                />\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 'progress.Estimated'}}&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 'progress.Estimated'}}&nbsp;&nbsp;<FaIcon\n                  @icon='info-circle'\n                />\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 'progress.Missing costs'}}&nbsp;&nbsp;<FaIcon\n                @icon='exclamation-triangle'\n              />\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 'progress.Missing costs'}}&nbsp;&nbsp;<FaIcon\n                  @icon='question-circle'\n                />\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 'progress.Modified'}}&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 'progress.Modified'}}&nbsp;&nbsp;<FaIcon\n                  @icon='code-branch'\n                />\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 'progress.Reset progress'}}</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\": \"KLNdWqz0\",\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],[\\\"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],[\\\"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],[\\\"progress.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],[\\\"progress.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],[\\\"progress.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],[\\\"progress.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],[\\\"progress.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],[\\\"progress.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],[\\\"progress.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],[\\\"progress.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],[\\\"progress.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],[\\\"progress.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 'task.addTaskForX' taskName=@item.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\": \"5U5Nb6oG\",\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],[\\\"task.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 'task.selectATemplateToLoadTasksFrom'}}\n            @options={{this.options}}\n            @loadingMessage={{t 'common.Loading'}}\n            @selected={{this.selectedTaskTemplate}}\n            @onChange={{this.onSelectTaskTemplate}}\n            as |template|\n          >\n            {{or template.name (t 'task.Unnamed template*')}}\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 'task.Add new template'}}\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 'task.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 'task.Deleting template'}}&hellip;\n                {{else}}\n                  {{t '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 'task.Creating template'}}&hellip;\n                {{else}}\n                  {{t 'task.Create new template from default'}}\n                {{/if}}\n              {{else}}\n                {{#if this.saveSelectedTaskTemplate.isRunning}}\n                  {{t 'task.Saving template'}}&hellip;\n                {{else}}\n                  {{t 'task.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 'task.Load template'}}\n        </button>\n      {{/if}}\n    </div>\n  \n  </ModalDialog>\n  */\n  {\n    \"id\": \"wUOMHXUX\",\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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"task.Deleting template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"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],[\\\"task.Creating template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"task.Create new template from default\\\"],null]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,0,[\\\"saveSelectedTaskTemplate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"task.Saving template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"task.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],[\\\"task.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('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('notification.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('notification.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('notification.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('notification.somethingWentWrongWhileSavingTaskTemplate'), error);\n          }\n        }\n      }), null, \"saveSelectedTaskTemplate\", null));\n    }\n    async fetchOptions() {\n      await this.initTaskTemplates.perform();\n      return [{\n        groupName: this.intl.t('task.Your templates'),\n        options: this.taskTemplates\n      }, {\n        groupName: this.intl.t('task.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 '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\": \"evL5lz4b\",\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],[\\\"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\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _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, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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,\"@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 'scheduling.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 'scheduling.importTasksExplanation'}}\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      </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 'progress.thisProjectDoesNotHaveAnyTasksYet'}}\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 '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' 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            'scheduling.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 'scheduling.Save tasks for project'}}\n        </button>\n      {{/if}}\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"0OdLiNiZ\",\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],[\\\"scheduling.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],[\\\"scheduling.importTasksExplanation\\\"],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,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,11],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,12],null,[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\"],[[28,[37,13],[[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,15],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],[\\\"progress.thisProjectDoesNotHaveAnyTasksYet\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,18],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",[30,0,[\\\"selectedProject\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"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-import-modal-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,20],[\\\"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],[\\\"scheduling.Saving tasks\\\"],null]],[1,\\\"…\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,22],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,20],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveAndImportTasks\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"scheduling.Save tasks for project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@projects\\\",\\\"&attrs\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"if\\\",\\\"gt\\\",\\\"label\\\",\\\"select-input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"loading-icon\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"component\\\",\\\"timeline-task-import-item-row/add-item\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"link-to\\\",\\\"button\\\",\\\"on\\\",\\\"span\\\",\\\"or\\\"]]\",\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      _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('notification.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('notification.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('notification.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    }\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    }\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  }), _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), _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 'timesheet.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\": \"RRC0Jrqj\",\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],[\\\"timesheet.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('notification.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 (t 'timesheet.workerSNote') ': ' note.body}}\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 'timesheet.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 'timesheet.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 '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                      {{t\n                        (or projectMeta.timesheetStatus.hrStatus 'common.Pending')\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 'timesheet.Edited by admin because'}}:</span>\n                      <br />\n                      {{or\n                        projectMeta.timesheetStatus.editNote\n                        (t '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 'timesheet.youCannotAcceptTimesheetsForThisProject'}}\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 'timesheet.Edit timesheets'}}\n              </LinkTo>\n            </div>\n          </div>\n        {{/if}}\n      {{/each}}\n    </div>\n  </LazyEach>\n  */\n  {\n    \"id\": \"Ubw67e+L\",\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],[\\\"timesheet.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],[\\\"timesheet.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],[\\\"timesheet.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],[\\\"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,1],[[28,[37,23],[[30,15,[\\\"timesheetStatus\\\",\\\"hrStatus\\\"]],\\\"common.Pending\\\"],null]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[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],[\\\"timesheet.Edited by admin because\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,23],[[30,15,[\\\"timesheetStatus\\\",\\\"editNote\\\"]],[28,[37,1],[\\\"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],[\\\"timesheet.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,25],[[24,0,\\\"text-button\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[[30,17],[28,[37,26],null,[[\\\"worker\\\",\\\"date\\\"],[[30,4,[\\\"worker\\\",\\\"id\\\"]],[28,[37,5],[[30,2,[\\\"date\\\"]],\\\"YYYY-MM-DD\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"timesheet.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\\\",\\\"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 'settings.workerPayRateCalculatorExplanation'}}\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 'settings.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 'settings.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 'settings.Make company default'}}</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 'settings.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 '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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.hours per day'}}\n                  </span>\n                </td>\n              {{/if}}\n  \n              {{#unless this.isEditing}}\n                <td>{{format-duration this.selectedCalculator.workingHoursPerDay}}\n                  {{t 'settings.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 'settings.of pay rate'}}</th>\n              <th class='worker-cost-calculator-table__header text-right'>{{t\n                  'settings.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 'settings.minutes per day'}}\n                      {{else if (eq item.valueType 'daysPerYear')}}\n                        {{t 'settings.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                            'settings.percentage of pay rate'\n                          }}</si.option>\n                        <si.option @value='minutesPerDay'>{{t\n                            'settings.minutes per day'\n                          }}</si.option>\n                        <si.option @value='daysPerYear'>{{t\n                            'settings.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                        'settings.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 'settings.minutes per day'}}\n                      {{else if (eq item.valueType 'daysPerYear')}}\n                        {{item.value}}\n                        {{t 'settings.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                        'settings.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 'settings.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                  'settings.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                  'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.Use calculator'}}</button>\n  */\n  {\n    \"id\": \"7oMJGH/g\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.of pay rate\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-right\\\"],[12],[1,[28,[35,5],[\\\"settings.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],[\\\"settings.minutes per day\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"daysPerYear\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,5],[\\\"settings.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],[\\\"settings.percentage of pay rate\\\"],null]]],[]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"minutesPerDay\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,5],[\\\"settings.minutes per day\\\"],null]]],[]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"daysPerYear\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,5],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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('notification.Calculator was saved successfully'));\n            this.isEditing = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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 'settings.overrideWorkersChargeOutRateExplanation'}}\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                {{t\n                  (concat\n                    'common.'\n                    'Effective '\n                    (convert-to-lowercase\n                      @project.effectiveProfitMargin.labourPercentage.type\n                    )\n                  )\n                }}\n              </th>\n              <th>{{t 'settings.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                    'settings.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\": \"4WS9KX1/\",\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],[\\\"settings.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,7],[[28,[37,12],[\\\"common.\\\",\\\"Effective \\\",[28,[37,13],[[30,1,[\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],null]],null]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"settings.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,16],[[28,[37,16],[[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,18],[[30,2,[\\\"effectiveProfitMargin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,2,[\\\"hasActiveAllocation\\\"]],[28,[37,20],[[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,22],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"setDefaultEffectiveMargin\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,12],[[28,[37,7],[\\\"common.Use default\\\"],null],\\\" \\\",[28,[37,18],[[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,23],[[28,[37,25],[[30,2,[\\\"allocation\\\",\\\"chargeOutRate\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,18],[[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,22],[\\\"click\\\",[28,[37,23],[[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,22],[\\\"click\\\",[28,[37,23],[[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],[\\\"settings.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,22],[\\\"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,22],[\\\"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,22],[\\\"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,23],[[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,22],[\\\"click\\\",[28,[37,23],[[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,22],[\\\"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\\\",\\\"concat\\\",\\\"convert-to-lowercase\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"number-format\\\",\\\"and\\\",\\\"not\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"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('notification.Charge out rates saved'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Charge out rates saved and applied'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('report.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('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('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('notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('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('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('notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('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('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('notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('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('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('notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('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('settings.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('bill.Do you want to delete these bills')];\n      return [(0, _object.get)(this, 'intl').t('bill.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('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('notification.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('notification.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('notification.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('bill.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('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('notification.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('notification.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('notification.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('notification.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('notification.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('notification.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('notification.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('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('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('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('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('notification.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('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('notification.billsSuccessfullyAllocatedAndAccepted')} ${xeroMessage}`\n              }, 7500);\n            }\n          } else {\n            notifications.info(`${(0, _object.get)(this, 'intl').t('notification.billsSuccessfullyAllocatedAndAccepted')} ${(0, _object.get)(this, 'intl').t('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('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('notification.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('notification.successfullySentXInvoiceToXero', {\n        count: prevUnsentCount,\n        invoice: prevUnsentCount > 1 ? 'invoices' : 'invoice'\n      });\n      if (prevSentCount) message += ` ${(0, _object.get)(this, 'intl').t('notification.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('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('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('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('notification.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('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('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('notification.Auto mapping successful'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('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('notification.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('notification.Bill successfully saved'));\n          } else {\n            notifications.info((0, _object.get)(this, 'intl').t('notification.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('notification.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('notification.Items successfully allocated'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('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('notification.billsSuccessfullyAllocatedAndAccepted'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('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('notification.billsSuccessfullyAllocatedAndAccepted')} ${(0, _object.get)(this, 'intl').t('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('notification.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('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('notification.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('notification.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.newFeatureFlags.includesFeatureFlags('entityCanUseIPS') && 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('notification.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('notification.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('notification.Timesheet returned to pending'));\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('notification.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('notification.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('notification.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('notification.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('notification.Timesheet returned to pending'));\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('notification.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: [{\n      value: 'pending',\n      hrStatus: 'Pending'\n    }, {\n      value: 'accepted',\n      hrStatus: 'Accepted'\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('notification.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('notification.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('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('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.humanReadableStatus, `${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('notification.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('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('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('notification.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('notification.Successfully saved invoice'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Successfully deleted invoice'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('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('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('notification.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('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('settings.Add item') : this.intl.t('settings.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      const message = 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      return this.intl.t(message);\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.humanReadableStatus,\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('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('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('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('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('payroll.Pay rate'));\n        headings.push((0, _object.get)(this, 'intl').t('payroll.Total hours'));\n        if (canSeePayRate) headings.push((0, _object.get)(this, 'intl').t('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('payroll.Payroll report')], [`${(0, _object.get)(this, 'intl').t('payroll.Report for')}:`, entityName], [`${(0, _object.get)(this, 'intl').t('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('notification.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('notification.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('notification.Timesheets synced with Xero'));else (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'intl').t('notification.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('payroll.Payroll report')]\n        });\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('payroll.Report for')}:`, entityName]\n        });\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('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('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('payroll.Pay rate'));\n          payRollData.push((0, _object.get)(this, 'intl').t('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('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('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('notification.Successfully saved purchase order'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Successfully deleted purchase order'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('purchase-order.Purchase order number'), this.intl.t('common.Status'), this.intl.t('common.Buyer'), this.intl.t('common.Seller'), this.intl.t('purchase-order.Order submitted date'), this.intl.t('purchase-order.Order note'), this.intl.t('purchase-order.Delivery requested date'), this.intl.t('purchase-order.Delivery note'), this.intl.t('purchase-order.Delivery address'), this.intl.t('common.SKU'), this.intl.t('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('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('purchase-order.Order submitted date'), this.exportedData.orderSubmittedDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('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('purchase-order.Delivery address'), this.purchaseOrder.address]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('purchase-order.Delivery note'), this.exportedData.deliveryNote]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('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('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('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('notification.successfullyApprovedAndSubmittedToSupplier'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Successfully sent to supplier'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('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('purchase-order.approveAndSubmit'),\n            action: this.openApproveAndSendModal\n          }, {\n            name: this.intl.t('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('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('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('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('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('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('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('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('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('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('report-builder.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('report-builder.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('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('report-builder.Row type'), intl.t('common.Task'), intl.t('report-builder.Invoice issuer'), intl.t('common.Invoice number'), intl.t('settings.Invoice reference'), intl.t('report-builder.Item description'), intl.t('report-builder.Item product code'), intl.t('report-builder.Item quantity'), intl.t('report-builder.Item unit price'), intl.t('report-builder.Item subtotal'), intl.t('report-builder.Item margin total'), intl.t('report-builder.Item total'), intl.t('report-builder.Timesheet worker'), intl.t('report-builder.Timesheet date'), intl.t('report-builder.Timesheet hours'), intl.t('report-builder.Timesheet rate'), intl.t('report-builder.Timesheet subtotal'), intl.t('report-builder.Timesheet margin total'), intl.t('report-builder.Timesheet total'), intl.t('report-builder.Manual item description'), intl.t('report-builder.Manual item subtotal'), intl.t('report-builder.Manual item margin total'), intl.t('report-builder.Manual item total'), intl.t('report-builder.Task labour hours total'), intl.t('report-builder.Task subtotal'), intl.t('report-builder.Task margin total'), intl.t('report-builder.Task total'), intl.t('report-builder.Report labour hours total'), intl.t('report-builder.Report subtotal'), intl.t('report-builder.Report margin total'), intl.t('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('report-builder.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('report-builder.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('settings.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('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('report-builder.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('report-builder.Materials subtotal'), computedTotals.invoice.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('report-builder.Materials margin'), computedTotals.invoice.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('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('settings.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('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('report-builder.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('report-builder.Man hours'), computedTotals.timesheet.manHoursTotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('report-builder.Labour subtotal'), computedTotals.timesheet.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('report-builder.Labour margin'), computedTotals.timesheet.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('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('settings.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('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('report-builder.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('report-builder.Subcontractor subtotal'), computedTotals.subcontractor.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('report-builder.Subcontractor margin'), computedTotals.subcontractor.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('report-builder.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('report-builder.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('report-builder.Total margin'), computedTotals.total.margin]\n    });\n    report.push({\n      lineType: 'reportTotalLast',\n      data: [intl.t('report-builder.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('report-builder.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('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('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('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('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('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('task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('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('notification.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('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('notification.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('notification.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('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('notification.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('notification.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('notification.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('notification.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('notification.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('notification.Edited estimate successfully'));\n            this.editingEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Duplicated estimate successfully'));\n            this.duplicateEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Deleted estimate successfully'));\n            this.deletingEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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('notification.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('notification.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('notification.Imported estimates successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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('notification.Imported templates successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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('notification.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('notification.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('notification.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('notification.Imported materials successfully'));\n            this.destroyImportMaterialsModal();\n          } catch (error) {\n            this.destroyImportMaterialsModal();\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Generated tasks successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.somethingWentWrongWhileGeneratingTasks'),\n              error\n            });\n          } finally {\n            this.closeGenerateTasks();\n          }\n        }\n      }), null, \"generateTasks\", null));\n    }\n    get deleteMessages() {\n      return [this.intl.t('estimate.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('notification.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('notification.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('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('notification.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('notification.Removed client from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('settings.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('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('notification.Added client to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.Added subcontractor to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.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('notification.Removed subcontractor from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('settings.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('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('notification.Added user to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.thisOptionIsSupersededByACompanyPermission'));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('notification.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('notification.Removed user from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('settings.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('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('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('notification.Added worker to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.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('notification.Removed worker from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('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('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('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('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('notification.Successfully saved progress draft'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Successfully made progress version'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('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('notification.Successfully synced tracking categories'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Successfully deleted the project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Successfully archived the project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('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('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('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('notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('notification.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('notification.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('notification.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('notification.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('notification.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('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('notification.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('notification.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('notification.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('notification.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('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('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('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('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('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('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('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('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('stage-payments.Edit details') : this.intl.t('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('stage-payments.Edit value'),\n            iconName: 'dollar-sign',\n            onClickButton: this.openValueEditor\n          }, {\n            name: this.intl.t('stage-payments.Edit due date'),\n            iconName: 'calendar',\n            onClickButton: this.openDateEditor\n          });\n        }\n        constraintItems.push({\n          name: this.isEditable ? this.intl.t('stage-payments.Edit included tasks') : this.intl.t('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('stage-payments.Edit checklist') : this.intl.t('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('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('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('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' ? 'stage-payments.viewInvoiceNumber' : '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('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('notification.successfullyDeletedStage', {\n          stage: 'stage'\n        }));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('notification.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('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('notification.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('notification.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('notification.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('notification.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('notification.Successfully imported tasks'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('notification.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('notification.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('notification.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('notification.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('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('notification.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('notification.Removed client from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('settings.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('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('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('notification.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('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('notification.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('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('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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.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('notification.Removed subcontractors from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('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('settings.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('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('notification.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('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('notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('notification.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('notification.Removed user from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('settings.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('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('notification.Added worker to task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.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('notification.Removed worker from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('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('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('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('notification.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('task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('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('notification.Successfully deleted task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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('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('notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.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('notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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('notification.deleteTask');\n      return null;\n    }\n    get deleteMessages() {\n      const messages = [this.intl.t('settings.doYouWantToDeleteThisTask')];\n      if (this.model.task.last.value.children.length >= 1) {\n        messages.push(this.intl.t('settings.willDeleteSubtasks', {\n          subtaskNumber: this.model.task.last.value.children.length\n        }));\n      }\n      if (this.taskHasDependencies) {\n        messages.push(this.intl.t('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('task.Cost plus');\n        case 'FIXED_PRICE':\n          return this.intl.t('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;\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, \"_ganttDependenciesEnabled\", _descriptor16, this);\n      _initializerDefineProperty(this, \"_ganttLabelsEnabled\", _descriptor17, this);\n      _initializerDefineProperty(this, \"_ganttCriticalPathsEnabled\", _descriptor18, this);\n      _initializerDefineProperty(this, \"_ganttNonWorkingTimeEnabled\", _descriptor19, this);\n      _initializerDefineProperty(this, \"_ganttColumnLinesEnabled\", _descriptor20, this);\n      _initializerDefineProperty(this, \"_ganttRollupsEnabled\", _descriptor21, this);\n      _initializerDefineProperty(this, \"_ganttProgressLineEnabled\", _descriptor22, this);\n      _initializerDefineProperty(this, \"_ganttParentAreaEnabled\", _descriptor23, 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('notification.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('scheduling.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                normal: {\n                  collapsed: this.ganttSubGridConfigsEnabled\n                }\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    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    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('notification.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, \"_ganttDependenciesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttDependenciesEnabled') ?? true;\n    }\n  }), _descriptor17 = _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  }), _descriptor18 = _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  }), _descriptor19 = _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  }), _descriptor20 = _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  }), _descriptor21 = _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  }), _descriptor22 = _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  }), _descriptor23 = _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, \"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('notification.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('notification.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('notification.All directives were saved'));\n        } catch (error) {\n          notifications.error((0, _object.get)(this, 'intl').t('notification.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('notification.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('notification.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('settings.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('settings.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('settings.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('settings.of the current month')\n      }]);\n      _defineProperty(this, \"messages\", {\n        save: {\n          success: this.intl.t('notification.The entity was saved successfully'),\n          error: this.intl.t('notification.The entity failed to save')\n        },\n        delete: {\n          success: this.intl.t('notification.The entity was deleted successfully'),\n          error: this.intl.t('notification.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('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('notification.Profit margins saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Company details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.purchaseOrderDetailsSavedSuccessfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('settings.New Zealand business number');\n          break;\n        case 'AUS':\n          businessNumberLabel = this.intl.t('settings.Australian business number');\n          break;\n        case 'GBR':\n          businessNumberLabel = this.intl.t('settings.Company registration number');\n          break;\n        default:\n          businessNumberLabel = this.intl.t('settings.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('settings.GST number');\n          break;\n        case 'GBR':\n          taxNumberLabel = this.intl.t('settings.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('notification.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('notification.invalidLogoFormatPleaseUseJpegPngOrGif'));\n          return;\n        }\n        if (file.size > this.MAX_FILE_SIZE) {\n          this.notifications.info(this.intl.t('notification.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('notification.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('settings.of the following month')\n      }, {\n        value: 'DAYSAFTERBILLDATE',\n        label: this.intl.t('settings.day(s) after the bill date')\n      }, {\n        value: 'DAYSAFTERBILLMONTH',\n        label: this.intl.t('settings.day(s) after the end of the bill month')\n      }, {\n        value: 'OFCURRENTMONTH',\n        label: this.intl.t('settings.of the current month')\n      }]);\n      _defineProperty(this, \"salesPaymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('settings.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('settings.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('settings.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('settings.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('notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('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('notification.Successfully saved contact'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('notification.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('notification.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('notification.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('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('settings.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('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('notification.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('notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.importedXNewSuppliersAndUpdateX', {\n              created: changes.created.length || 0,\n              updated: changes.updated.length || 0\n            }) : this.intl.t('notification.All suppliers were already up to date'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('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('settings.Contact person'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('settings.Contact number'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('settings.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('settings.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\", \"portal/utils/email-validator\", \"@ember/object\", \"jquery\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _emailValidator, _object, _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, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"portal/utils/email-validator\",0,\"@ember/object\",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('settings.Awaiting approval')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('settings.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('settings.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      _initializerDefineProperty(this, \"_ipsContactEmail\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_ipsContactEmailErrorMessage\", _descriptor11, this);\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('notification.Successfully updated integration options'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.somethingWentWrongWhileUpdatingIntegrationOptions'),\n              error\n            });\n          }\n        }\n      }), null, \"updateCompanyFeatures\", null));\n      _defineProperty(this, \"updateIpsContactEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (newContactEmail) {\n          try {\n            yield this.ips.updateIpsContactEmail({\n              entityId: this.sessionData.entity.id,\n              contactEmail: newContactEmail\n            });\n            this.notifications.success(this.intl.t('notification.Successfully updated IPS contact email'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.somethingWentWrongWhileUpdatingIPSContactEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"updateIpsContactEmail\", 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('notification.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('notification.Please complete the information'));\n              return;\n            }\n            changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.Something went wrong while saving'),\n              error\n            });\n          }\n        }\n      }), null, \"saveXeroConnection\", null));\n      _initializerDefineProperty(this, \"selectedItmStores\", _descriptor12, 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('notification.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('notification.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('notification.Successfully made integration request'));\n          } catch (err) {\n            if (err.statusText === 'Bad Request') this.notifications.warning(this.intl.t('notification.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('notification.successfullyEnabledPlaceMakersIntegration'));\n            } else {\n              this.notifications.success(this.intl.t('notification.successfullyDisabledPlaceMakersIntegration'));\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.somethingWentWrongWhileUpdatingPlaceMakersIntegration'),\n              error\n            });\n          }\n        }\n      }), null, \"updatePlaceMakersIntegration\", null));\n    }\n    get isLoading() {\n      return this.getIpsContactInfo.isRunning || this.defaultEntityFeatures.isRunning || this.getItmSuppliers;\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    validateEmail(e) {\n      if (!(0, _emailValidator.default)(e.target.value)) return this.ipsContactEmailErrorMessage = this.intl.t('validation.Email');\n      return this.ipsContactEmailErrorMessage = '';\n    }\n    get ipsContactEmail() {\n      if (this._ipsContactEmail) return this._ipsContactEmail;\n      return this.model.ipsContactInfo.last.value.contactEmail;\n    }\n    set ipsContactEmail(value) {\n      this._ipsContactEmail = value;\n      return value;\n    }\n    get ipsContactEmailErrorMessage() {\n      if (this._ipsContactEmailErrorMessage) return this._ipsContactEmailErrorMessage;\n      return '';\n    }\n    set ipsContactEmailErrorMessage(value) {\n      this._ipsContactEmailErrorMessage = value;\n      return value;\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  }), _applyDecoratedDescriptor(_class2.prototype, \"validateEmail\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"validateEmail\"), _class2.prototype), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_ipsContactEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_ipsContactEmailErrorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _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('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('notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.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('notification.Successfully deleted user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('settings.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('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('notification.Successfully saved subcontractor'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('notification.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('notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('notification.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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('settings.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('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('settings.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('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('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('notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('notification.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('notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('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('notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('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('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('settings.userPermissionsExplanation');\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseFinancialReporting')) {\n        return this.intl.t('settings.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('settings.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('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('settings.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('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('notification.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.areYouSureYouWantToDeleteTheWorker') : this.intl.t('notification.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('notification.Successfully deleted worker') : this.intl.t('notification.Successfully disabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.canDeleteWorker ? this.intl.t('notification.Something went wrong deleting the worker') : this.intl.t('notification.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('notification.Successfully enabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('notification.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('notification.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('notification.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('notification.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('settings.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('notification.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('notification.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('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('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('notification.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('notification.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('notification.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-lowercase\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertToLowercase = convertToLowercase;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function convertToLowercase([str]) {\n    return str?.toLowerCase();\n  }\n  var _default = _exports.default = (0, _helper.helper)(convertToLowercase);\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/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/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;\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, \"xeroIntegration\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reference\", _descriptor3, this);\n      _initializerDefineProperty(this, \"billNumber\", _descriptor4, this);\n      _initializerDefineProperty(this, \"issuer\", _descriptor5, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor9, this);\n      _initializerDefineProperty(this, \"ipsId\", _descriptor0, this);\n      _initializerDefineProperty(this, \"notes\", _descriptor1, this);\n      _initializerDefineProperty(this, \"eaccountsFileName\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isAutoMapped\", _descriptor11, this);\n      _initializerDefineProperty(this, \"xeroInvoiceId\", _descriptor12, this);\n      _initializerDefineProperty(this, \"xeroCreditNoteId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"quickbooksBillId\", _descriptor14, this);\n      _initializerDefineProperty(this, \"quickbooksCreditNoteId\", _descriptor15, this);\n      _initializerDefineProperty(this, \"billType\", _descriptor16, this);\n      _initializerDefineProperty(this, \"taxAmount\", _descriptor17, this);\n      _initializerDefineProperty(this, \"subtotal\", _descriptor18, this);\n      _initializerDefineProperty(this, \"source\", _descriptor19, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor20, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor21, this);\n      _initializerDefineProperty(this, \"directiveUsed\", _descriptor22, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor23, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor24, this);\n      _initializerDefineProperty(this, \"issuerContact\", _descriptor25, this);\n      _initializerDefineProperty(this, \"items\", _descriptor26, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor27, this);\n    }\n    get humanReadableStatus() {\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 humanReadableType() {\n      switch (this.billType) {\n        case 'BILL':\n          return 'Bill';\n        case 'CREDIT_NOTE':\n          return '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, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reference\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"billNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"issuer\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"ipsId\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"notes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsFileName\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isAutoMapped\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"xeroInvoiceId\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"xeroCreditNoteId\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksBillId\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksCreditNoteId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"billType\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"taxAmount\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"subtotal\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"directiveUsed\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"issuerContact\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _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('settings.of the following month');\n        case 'DAYSAFTERBILLDATE':\n          return this.intl.t('settings.day(s) after the bill date');\n        case 'DAYSAFTERBILLMONTH':\n          return this.intl.t('settings.day(s) after the end of the bill month');\n        case 'OFCURRENTMONTH':\n          return this.intl.t('settings.of the current month');\n        default:\n          return '';\n      }\n    }\n    get purchaseDisplayPaymentTerm() {\n      return this.hasValidPurchasePaymentTerm ? `${this.paymentTermDay} ${this.getPurchaseDisplayPaymentTermType}` : this.intl.t('settings.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('settings.of the following month');\n        case 'DAYS_AFTER_ISSUE_DATE':\n          return this.intl.t('settings.day(s) after the issue date');\n        case 'DAYS_AFTER_ISSUE_MONTH':\n          return this.intl.t('settings.day(s) after the end of the issue month');\n        case 'OF_CURRENT_MONTH':\n          return this.intl.t('settings.of the current month');\n        default:\n          return '';\n      }\n    }\n    get salesDisplayPaymentTerm() {\n      return this.hasValidSalesPaymentTerm ? `${this.salesPaymentTermDay} ${this.getSalesDisplayPaymentTermType}` : this.intl.t('settings.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\", \"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, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\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', {\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, \"invoiceNumber\", _descriptor, this);\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      _initializerDefineProperty(this, \"invoiceType\", _descriptor3, this);\n      _initializerDefineProperty(this, \"xeroInvoiceId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"quickbooksInvoiceId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor9, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"toContact\", _descriptor10, this);\n      _initializerDefineProperty(this, \"referencedInvoice\", _descriptor11, this);\n      _initializerDefineProperty(this, \"items\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor13, 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 humanReadableStatus() {\n      switch (this.status) {\n        case 'COMPLETED':\n          return 'Completed';\n        case 'AWAITING_APPROVAL':\n          return 'Awaiting approval';\n        case 'DRAFT':\n          return 'Draft';\n        case 'APPROVED':\n          return 'Approved';\n      }\n      return null;\n    }\n    get humanReadableType() {\n      switch (this.invoiceType) {\n        case 'INVOICE':\n          return 'Invoice';\n        case 'CREDIT_NOTE':\n          return '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, \"invoiceNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"xeroInvoiceId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksInvoiceId\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_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, \"stagePayment\", [_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, \"toContact\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"referencedInvoice\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\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\", \"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, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _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', {\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, \"purchaseOrderNumber\", _descriptor, this);\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      _initializerDefineProperty(this, \"address\", _descriptor3, this);\n      _initializerDefineProperty(this, \"deliveryNote\", _descriptor4, this);\n      _initializerDefineProperty(this, \"orderNote\", _descriptor5, this);\n      _initializerDefineProperty(this, \"freightCharges\", _descriptor6, this);\n      _initializerDefineProperty(this, \"taxFreightCharges\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateOrderPlaced\", _descriptor8, this);\n      _initializerDefineProperty(this, \"requestedDeliveryDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor1, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor10, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor11, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor12, this);\n      _initializerDefineProperty(this, \"items\", _descriptor13, 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 humanReadableStatus() {\n      switch (this.status) {\n        case 'SENT':\n          return 'Sent';\n        case 'AWAITING_APPROVAL':\n          return 'Awaiting approval';\n        case 'APPROVED':\n          return 'Approved';\n        case 'DRAFT':\n          return 'Draft';\n      }\n      return null;\n    }\n    get deliveryStatus() {\n      return this._meta?.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, \"purchaseOrderNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"deliveryNote\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"orderNote\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"freightCharges\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"taxFreightCharges\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateOrderPlaced\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"requestedDeliveryDate\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _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/object\", \"@ember-data/model\", \"@glimmer/tracking\"], function (_exports, _object, _model, _tracking) {\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, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember-data/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  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      // Capitalize the first letter of the status to show on screen\n      _initializerDefineProperty(this, \"_hrStatus\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n    }\n    get hrStatus() {\n      if (this._hrStatus) return this._hrStatus;\n      const rawStatus = this.status;\n      return rawStatus.slice(0, 1).toUpperCase() + rawStatus.slice(1);\n    }\n    set hrStatus(value) {\n      (0, _object.set)(this, 'status', value.toLowerCase());\n      return value;\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, \"_hrStatus\", [_tracking.tracked], {\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  }), _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('report.Forecast used'),\n            elementType: 'BIG_TEXT',\n            borderStyle: 'BORDER',\n            axes: {\n              label: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('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('report.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('report.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('report.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('report.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('report.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('report.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('report.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('report.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('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('report.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('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('report.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('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('report.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('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('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('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('notification.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('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('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('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('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('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('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('progress.theProgressHasBeenCalculatedFromYourBudgetAndTimesheetsAs')} ${latestProgress}%.`;\n        let sentences = [this.intl.t('progress.thisProgressHasChangedFromWhatItWasPreviously')];\n        if (lastProgress === latestProgress) {\n          sentences.push(`${this.intl.t('progress.The last saved progress was')} ${lastProgress}%.`);\n        } else {\n          sentences.push(this.intl.t('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('progress.theProgressCalculatedUsingYourBudgetAndTimesheetsWas')} ${latestProgress}%.`;\n        let sentences = [this.intl.t('progress.thisProgressHasChangedFromWhatItWasPreviously')];\n        if (lastProgress === latestProgress) {\n          sentences.push(`${this.intl.t('progress.The last saved progress was')} ${lastProgress}%.`);\n        } else {\n          sentences.push(this.intl.t('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('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('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('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('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('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('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('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('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('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('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('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('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('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('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('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('settings.First name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('settings.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('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('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('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('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('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('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('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('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('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('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('settings.Job list')\n        },\n        ownTakeoff: {\n          path: 'syspages/workjob/jobtemplate/main.jsp',\n          pageTitle: this.intl.t('settings.Own takeoff')\n        },\n        // Settings\n        materialProduct: {\n          path: 'syspages/settings/myProduct/main.jsp',\n          pageTitle: this.intl.t('settings.Material product')\n        },\n        materialRate: {\n          path: 'syspages/settings/materialRate/main.jsp',\n          pageTitle: this.intl.t('settings.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('settings.Data dictionary')\n        },\n        flatRateResource: {\n          path: 'syspages/settings/flatRateResource/main.jsp',\n          pageTitle: this.intl.t('settings.Flat rate resource')\n        },\n        subcontractorRate: {\n          path: 'syspages/workmodel/workgangsubcontrator/main.jsp',\n          pageTitle: this.intl.t('settings.Subcontractor rate')\n        },\n        crTools: {\n          path: 'syspages/settings/crTools/main.jsp',\n          pageTitle: this.intl.t('settings.CR tools')\n        },\n        miscTemplate: {\n          path: 'syspages/settings/miscTemplate/main.jsp',\n          pageTitle: this.intl.t('settings.Misc template')\n        },\n        sumsSettings: {\n          path: 'syspages/settings/sumsSetting/main.jsp',\n          pageTitle: this.intl.t('settings.Sums settings')\n        },\n        labourFactor: {\n          path: 'syspages/settings/labourFactor/main.jsp',\n          pageTitle: this.intl.t('settings.Labour factor')\n        },\n        pendingList: {\n          path: 'syspages/settings/pendingList/main.jsp',\n          pageTitle: this.intl.t('settings.Pending list')\n        },\n        overheadTemplates: {\n          path: 'syspages/settings/overheadTemplate/main.jsp',\n          pageTitle: this.intl.t('settings.Overhead templates')\n        },\n        workgangPositions: {\n          path: 'syspages/settings/workgangPositions/main.jsp',\n          pageTitle: this.intl.t('settings.Workgang positions')\n        },\n        workgangs: {\n          path: 'syspages/settings/workgangs/main.jsp',\n          pageTitle: this.intl.t('settings.Workgangs')\n        },\n        subcontractorList: {\n          path: 'syspages/settings/subcontracorList/main.jsp',\n          pageTitle: this.intl.t('settings.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('settings.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, \"getIpsContactInfo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const result = yield this.ips.getIpsContactInfo();\n          return result;\n        }\n      }), null, \"getIpsContactInfo\", null));\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    }\n    get defaultEntityFeatures() {\n      const features = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUsePayroll')) {\n        features.push({\n          key: 'canUseSmartPayroll',\n          label: this.intl.t('settings.Enable Smartly integration'),\n          description: null,\n          regions: ['NZL']\n        });\n        features.push({\n          key: 'canUseKeypay',\n          label: this.intl.t('settings.Enable KeyPay integration'),\n          description: null,\n          regions: ['NZL', 'AUS']\n        });\n        features.push({\n          key: 'canUseCrystalPayroll',\n          label: this.intl.t('settings.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      if (this.newFeatureFlags.includesFeatureFlags('entityCanUseIPS')) this.getIpsContactInfo.perform();\n      return {\n        entity,\n        ipsContactInfo: this.getIpsContactInfo,\n        defaultEntityFeatures: this.defaultEntityFeatures,\n        featurePermissionsChangeset: this.getFeaturePermissionsChangeset(entityAttributes),\n        itmSuppliers: this.getItmSuppliers\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;\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      // the meter reads this, so a refused upload can correct it in place\n      _initializerDefineProperty(this, \"latestUsage\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dismissedAlert\", _descriptor7, 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.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, \"latestUsage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _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;\n    }\n\n    // statements ride the Doc Flow free allowance, so access comes from Bills\n    get entityCanUseStatements() {\n      return this.entityCanUseBills;\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('notification.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('notification.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('notification.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('notification.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('notification.No Xero employees found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('notification.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('notification.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('notification.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('notification.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('notification.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('notification.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('notification.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('notification.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('notification.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('notification.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 'settings.Your PlaceMakers connection has expired'}}\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\": \"xa/j25rr\",\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],[\\\"settings.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 'bill.Import a bill'}}\n              @title={{t 'bill.Bill format'}}\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 'bill.selected bills')\n                  (t 'bill.selected bill')\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 'bill.Accept invoices'}}\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 'bill.Archive invoices'}}\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 '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 '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 'bill.Allocate (Auto Map)'}}\n                </div>\n  \n                <div\n                  class='overlaid-dropdown__option'\n                  {{action this.toggleProperty 'allocatingItems'}}\n                  data-test-allocate-items=''\n                >\n                  {{t 'bill.Allocate (Manually)'}}\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 'bill.Unallocated bills'}}\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 'bill.Only show unallocated bills'}}\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 'bill.supplierReference'}}\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 'bill.maxNumberOfBills'}}\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 'bill.maxNumberOfBills'}}\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            'bill.youAreAboutToAcceptAnInvoiceThatIsNotCompletelyAllocatedDoYouWantToContinue'\n          }}</p>\n  \n        <footer class='block-module__footer'>\n          <label><Input\n              @type='checkbox'\n              @checked={{this.doNotWarnForUnmappedInvoice}}\n            />\n            {{t '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 '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              'bill.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 'bill.Send all'}}\n            </button>\n            <button\n              class='button button--spaced float-end'\n              type='button'\n              {{action 'sendSelectedInvoicesToXero' 'mapped'}}\n            >\n              {{t 'bill.Send allocated bills only'}}\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            '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\": \"RdYSRJhM\",\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],[\\\"bill.Import a bill\\\"],null],[28,[37,7],[\\\"bill.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],[\\\"bill.selected bills\\\"],null],[28,[37,7],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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],[\\\"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],[\\\"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],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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],[\\\"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],[\\\"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],[\\\"bill.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],[\\\"bill.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],[\\\"bill.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],[\\\"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                '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 'bill.Next'}}&nbsp;<FaIcon\n                @icon='angle-right'\n                @fixedWidth={{true}}\n              />\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 'bill.This bill 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\n          (or this.model.invoice.xeroLinked this.model.invoice.quickbooksLinked)\n        }}\n          <IntegrationIcon\n            @exported={{true}}\n            @title={{t 'bill.aCopyOfThisBillHasBeenSentToYourAccountingPackage'}}\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 'bill.Bill was auto mapped'}}\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 'settings.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 'bill.Update in Xero'}}\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 'bill.Accept bill to send to Xero')\n                      (t '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 'bill.Update in QuickBooks'}}\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 'bill.Accept bill to send to QuickBooks')\n                      (t '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 'bill.This bill number has already been used'}}\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              '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 'bill.Proceed to create items'}}\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 'bill.Allocate selected items')\n              (t 'bill.Select items to allocate')\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 'bill.Auto map'}}\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 'bill.Add another item'}}\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 'bill.Accept bill'}}\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 'bill.sentToXeroAsCreditNote'}}</p>\n        <p>{{t 'bill.needToAllocateTheCreditNote'}}</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 'bill.Accept and send'}}\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 'bill.Accept and send'}}\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          'bill.youAreAboutToAcceptAnBillThatIsNotCompletelyAllocatedDoYouWantToContinue'\n        }}</p>\n  \n      <footer class='block-module__footer'>\n        <label><Input\n            @type='checkbox'\n            @checked={{this.doNotWarnForUnmappedInvoice}}\n          />\n          {{t '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\": \"mU3ZRZgc\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"settings.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],[\\\"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],[\\\"bill.Accept bill to send to Xero\\\"],null],[28,[37,4],[\\\"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],[\\\"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],[\\\"bill.Accept bill to send to QuickBooks\\\"],null],[28,[37,4],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"bill.Allocate selected items\\\"],null],[28,[37,4],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"bill.sentToXeroAsCreditNote\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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 (and (includes-feature-flags 'entityCanUseIPS') 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\": \"iHC/2AdI\",\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,[28,[37,11],[[28,[37,4],[\\\"entityCanUseIPS\\\"],null],[30,0,[\\\"ips\\\",\\\"ready\\\"]]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center gap-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[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,14],[[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,15],[\\\"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,16],[[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,17],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,18],null,[[\\\"@disableBlur\\\",\\\"@direction\\\"],[true,\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,19],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,21],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,21],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,21],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,22],[[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,22],[[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,22],[[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,22],[[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,22],[[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,23],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,24],[[28,[37,15],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[28,[37,12],[[28,[37,25],[\\\"isDesktop\\\"],null]],null]],null],[30,0,[\\\"status\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[\\\"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,27],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showPdfUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,28],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,29],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\\\",\\\"and\\\",\\\"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 'timesheet.New timesheet'}}\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 'timesheet.Accept selected'}}\n              </div>\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'undoAcceptSelectedTimesheets')}}\n              >\n                {{t 'timesheet.Return to pending'}}\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 'timesheet.No timesheets'}}</h3>\n        </div>\n      {{/if}}\n    </div>\n  </article>\n  {{outlet}}\n  */\n  {\n    \"id\": \"7f7WPkKI\",\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],[\\\"timesheet.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],[\\\"timesheet.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],[\\\"timesheet.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],[\\\"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 '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 'timesheet.workerSNotes'}}\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 'timesheet.Admin note'}}</h4>\n                      <Textarea\n                        placeholder={{t 'timesheet.adminSNotes'}}\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 @value={{status.value}}>{{t\n                              status.hrStatus\n                            }}</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                        {{or group.timesheetStatus.hrStatus (t 'common.Pending')}}\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 'timesheet.Edited by admin because'}}:</span>\n                      <br />\n                      {{or\n                        this.projectMeta.timesheetStatus.editNote\n                        (t '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 'timesheet.Add task for'}}\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                      '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          '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\": \"gB8Nxb+f\",\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],[\\\"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],[\\\"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],[\\\"timesheet.Admin note\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"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,[28,[35,7],[[30,5,[\\\"hrStatus\\\"]]],null]]],[]]]]],[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,22],[[30,2,[\\\"timesheetStatus\\\",\\\"hrStatus\\\"]],[28,[37,7],[\\\"common.Pending\\\"],null]],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,25],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"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],[\\\"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,29],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,30],[[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],[\\\"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],[\\\"timesheet.Add a project\\\"],null]],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"select-box-replacement__select-box\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,32],[[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,34],[[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],[\\\"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,34],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\\\",\\\"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 '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                            {{t (concat 'common.' invoice.humanReadableType)}}\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                          {{t (concat 'common.' invoice.humanReadableStatus)}}\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\": \"7irkIioZ\",\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],[\\\"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,[28,[35,6],[[28,[37,34],[\\\"common.\\\",[30,4,[\\\"humanReadableType\\\"]]],null]],null]],[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,[28,[35,6],[[28,[37,34],[\\\"common.\\\",[30,4,[\\\"humanReadableStatus\\\"]]],null]],null]],[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,35],[[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,37],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,39],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,40],[[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,42],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,40],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,39],[[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,40],[[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,43],[[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,40],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,39],[[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,40],[[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,39],[[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,40],[[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,37],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,47],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\\\",\\\"concat\\\",\\\"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.humanReadableType}}&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            {{t (concat 'common.' this.invoice.humanReadableStatus)}}\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 '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 '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 '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 'report-builder.First break down by'}}…\n                    {{else}}\n                      …{{t '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\": \"+tKIpm+9\",\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\\\",\\\"humanReadableType\\\"]]],[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,[28,[35,4],[[28,[37,12],[\\\"common.\\\",[30,0,[\\\"invoice\\\",\\\"humanReadableStatus\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],[[24,0,\\\"btn btn-link p-0 m-1\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"entity.builda-price.reports.company.notes\\\",[28,[37,14],null,[[\\\"invoiceId\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"View timesheet notes\\\\n        \\\"],[8,[39,15],[[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,17],[\\\"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,17],[\\\"click\\\",[28,[37,18],[[28,[37,19],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.action\\\"],null],[28,[37,19],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.id\\\"],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,19],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.label\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[8,[39,21],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,15],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"relatedDocuments\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[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,24],[[28,[37,25],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[30,0,[\\\"invoice\\\",\\\"xeroInvoiceId\\\"]]],null],[28,[37,25],[[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,17],[\\\"click\\\",[28,[37,18],[[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,15],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[28,[37,26],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[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,25],[[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,24],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[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,21],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[28,[37,24],[[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,24],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[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,17],[\\\"click\\\",[28,[37,18],[[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,28],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,21],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,15],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,17],[\\\"click\\\",[28,[37,29],[[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],[\\\"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,17],[\\\"click\\\",[28,[37,29],[[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],[\\\"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,17],[\\\"click\\\",[28,[37,29],[[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],[\\\"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,30],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,17],[\\\"click\\\",[28,[37,29],[[28,[37,32],[[30,0,[\\\"isEditingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\" \\\\n          \\\"],[8,[39,15],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,35],[\\\"canUseSuppliers\\\"],null],[[[41,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\" \\\\n                  \\\"],[8,[39,15],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,36],[[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,36],[[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,26],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[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,17],[\\\"click\\\",[30,0,[\\\"addInvoiceItem\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],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,37],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,25],[[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[28,[37,38],[[30,0,[\\\"invoice\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,26],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,29],[[28,[37,32],[[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,38],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,29],[[28,[37,32],[[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,39],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,29],[[28,[37,32],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-content\\\"],[4,[38,40],[[28,[37,18],[[30,0,[\\\"validateInvoiceSafeToDelete\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,30],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,41],[[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,17],[\\\"click\\\",[28,[37,18],[[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,17],[\\\"click\\\",[28,[37,29],[[28,[37,32],[[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,39],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,29],[[28,[37,32],[[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,17],[\\\"click\\\",[28,[37,29],[[28,[37,32],[[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,17],[\\\"click\\\",[28,[37,18],[[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,39],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,29],[[28,[37,32],[[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,17],[\\\"click\\\",[28,[37,29],[[28,[37,32],[[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,17],[\\\"click\\\",[28,[37,18],[[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,39],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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,26],[[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,20],[[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,45],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,46],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,20],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null],[28,[37,24],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"invoiceChangeSet\\\",\\\"toContact\\\"]],[28,[37,35],[\\\"canUseSuppliers\\\"],null]],null],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"form-text link me-auto\\\"],[4,[38,17],[\\\"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,15],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,20],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,20],[[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,17],[\\\"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,17],[\\\"click\\\",[28,[37,18],[[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,47],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,26],[[30,0,[\\\"canEdit\\\"]]],null],[28,[37,26],[[30,0,[\\\"canAllocate\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,39],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,29],[[28,[37,32],[[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,23],[[28,[37,23],[[30,0,[\\\"exportOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,48],[[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,17],[\\\"click\\\",[28,[37,29],[[28,[37,32],[[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,17],[\\\"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,39],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,29],[[28,[37,32],[[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,30],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,25],[[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,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"blur\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"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,49],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,50],[[28,[37,29],[[28,[37,32],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null],[28,[37,18],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[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],[\\\"report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    …\\\"],[1,[28,[35,4],[\\\"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,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,52],[[30,0],[30,9,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,29],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,29],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"change\\\",[28,[37,18],[[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,42],[[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,26],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,17],[\\\"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,17],[\\\"click\\\",[28,[37,29],[[28,[37,32],[[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,24],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[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\\\",\\\"concat\\\",\\\"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 'bill.Export to Xero'}}\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 'payroll.Export to QuickBooks'}}\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                '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 'settings.Charge out rate')\n                  (t 'settings.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 'payroll.Charge out')\n                  (t '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 'payroll.overrideWorkersChargeOutRateInfo'}}\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 'payroll.thereAreNoTimesheetsForTheCurrentlySelectedPeriodOrWorker'}}\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                'payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors'\n                number=summary.success.length\n              }}\n            {{/unless}}\n  \n            {{#if summary.failures.length}}\n              <ul>\n                <li>\n                  {{t\n                    '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                'payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors'\n                number=summary.success.length\n              }}\n            {{/unless}}\n  \n            {{#if summary.failures.length}}\n              <ul>\n                <li>\n                  {{t\n                    '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 'payroll.Accept and export'}}</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 '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\": \"XSmWkHaQ\",\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],[\\\"bill.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],[\\\"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],[\\\"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],[\\\"settings.Charge out rate\\\"],null],[28,[37,4],[\\\"settings.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],[\\\"payroll.Charge out\\\"],null],[28,[37,4],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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 'purchase-order.PO Number'}}\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 '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 'purchase-order.Delivery status'}}\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                        {{t (concat 'common.' purchaseOrder.deliveryStatus)}}\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                      {{t (concat 'common.' purchaseOrder.humanReadableStatus)}}\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                '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 '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 'settings.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 '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\": \"6bbalwnY\",\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],[\\\"purchase-order.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],[\\\"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],[\\\"purchase-order.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,[28,[35,6],[[28,[37,27],[\\\"common.\\\",[30,2,[\\\"deliveryStatus\\\"]]],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,28],[[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,[28,[35,6],[[28,[37,27],[\\\"common.\\\",[30,2,[\\\"humanReadableStatus\\\"]]],null]],null]],[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,29],[[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],[\\\"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,31],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,33],[[16,\\\"placeholder\\\",[30,0,[\\\"nextPurchaseOrderNumber\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,6],[\\\"purchase-order.Purchase order number\\\"],null],\\\"purchaseOrderNumber\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,34],[[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,37],null,[[\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onSelect\\\",\\\"@onLoad\\\"],[[28,[37,6],[\\\"settings.No suppliers\\\"],null],\\\"supplier\\\",[28,[37,38],[\\\"name\\\"],null],[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,34],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"loadSuppliers\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,39],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\"],[false,[30,0,[\\\"addressList\\\"]],[28,[37,6],[\\\"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,34],[[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\\\",\\\"concat\\\",\\\"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            {{t (concat 'common.' this.purchaseOrder.humanReadableStatus)}}\n          </span>\n  \n          {{#if this.model.purchaseOrder.last.value.dateOrderPlaced}}\n            <div class='badge bg-secondary fs-7 m-1'>\n              {{t '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 '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 '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 '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 '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 'purchase-order.Delivery requested date'}}\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 '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 'purchase-order.Freight charges'}}\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 'purchase-order.Delivery note'}}\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 'purchase-order.Order note'}}\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 'product.Delete products'}}\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 'product.Update prices'}}\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 'product.Mark as delivered'}}\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 'purchase-order.Delete purchase order'}}\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 'purchase-order.areYouSureYouWantToDeleteThisPurchaseOrder'}}\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 'purchase-order.Supplier contact information is missing'}}\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 'purchase-order.includeAllAttachmentsInSubmissionEmail'}}\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 'purchase-order.Supplier contact information is missing'}}\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 'purchase-order.includeAllAttachmentsInSubmissionEmail'}}\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\": \"g+Kd3F8Q\",\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,[28,[35,4],[[28,[37,14],[\\\"common.\\\",[30,0,[\\\"purchaseOrder\\\",\\\"humanReadableStatus\\\"]]],null]],null]],[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],[\\\"purchase-order.Order submitted date\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,16],[[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,17],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\"]],[28,[37,18],[[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,20],[\\\"click\\\",[28,[37,21],[[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,17],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[[52,[30,0,[\\\"isActionsRunning\\\"]],[28,[37,4],[\\\"common.Loading\\\"],null],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,21],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null],[30,0,[\\\"isActionsRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,24],[[28,[37,24],[[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,20],[\\\"click\\\",[28,[37,21],[[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,25],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,26],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,27],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,20],[\\\"click\\\",[28,[37,21],[[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],[\\\"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,20],[\\\"click\\\",[28,[37,21],[[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],[\\\"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,20],[\\\"click\\\",[28,[37,21],[[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],[\\\"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,28],[[16,\\\"disabled\\\",[28,[37,18],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"purchase-order.Purchase order number\\\"],null],\\\"purchaseOrderNumber\\\",true,[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,29],[[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,28],[[16,\\\"disabled\\\",[28,[37,18],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"purchase-order.Delivery requested date\\\"],null],\\\"requestedDeliveryDate\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,29],[[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,30],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[false,[30,0,[\\\"addressList\\\"]],[28,[37,4],[\\\"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,29],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null],[28,[37,18],[[30,0,[\\\"isEditable\\\"]]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,28],[[16,\\\"disabled\\\",[28,[37,18],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,4],[\\\"purchase-order.Freight charges\\\"],null],\\\"freightCharges\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,29],[[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,28],[[24,\\\"rows\\\",\\\"3\\\"],[24,5,\\\"max-height:111.5px\\\"],[16,\\\"disabled\\\",[28,[37,18],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"purchase-order.Delivery note\\\"],null],\\\"deliveryNote\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,29],[[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,28],[[24,\\\"rows\\\",\\\"3\\\"],[24,5,\\\"max-height:111.5px\\\"],[16,\\\"disabled\\\",[28,[37,18],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"purchase-order.Order note\\\"],null],\\\"orderNote\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,29],[[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,18],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,20],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"product.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,18],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,20],[\\\"click\\\",[28,[37,21],[[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],[\\\"product.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,18],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null],[30,0,[\\\"updateDeliveryStatus\\\",\\\"Running\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,20],[\\\"click\\\",[28,[37,21],[[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],[\\\"product.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,20],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[30,0,[\\\"isAddingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,27],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,33],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,20],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"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,20],[\\\"click\\\",[28,[37,21],[[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,34],null,[[\\\"@onClose\\\",\\\"@projects\\\",\\\"@onSavePurchaseOrderItems\\\",\\\"@purchaseOrder\\\",\\\"@purchaseOrderItems\\\"],[[28,[37,31],[[28,[37,32],[[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,35],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,31],[[28,[37,32],[[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],[\\\"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,20],[\\\"click\\\",[28,[37,21],[[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,20],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[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,35],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,31],[[28,[37,32],[[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],[\\\"purchase-order.Supplier contact information is missing\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,38],[[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,20],[\\\"click\\\",[28,[37,31],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeAllAttachmentsInSubmissionEmail\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"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,20],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[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,18],[[30,0,[\\\"supplierContactDetailsExists\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,20],[\\\"click\\\",[28,[37,21],[[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,35],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,31],[[28,[37,32],[[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],[\\\"purchase-order.Supplier contact information is missing\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,38],[[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,20],[\\\"click\\\",[28,[37,31],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeAllAttachmentsInSubmissionEmail\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"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,20],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[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,18],[[30,0,[\\\"supplierContactDetailsExists\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,20],[\\\"click\\\",[28,[37,21],[[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\\\",\\\"concat\\\",\\\"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 'report-builder.CSV export')\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 'report-builder.CSV export'}}\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 'report-builder.Export options'}}</h3>\n            <p>\n              {{t\n                'report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t 'report-builder.Include attachments on export'}}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            <p>\n              <label>\n                {{t '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\": \"GN5TyePi\",\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],[\\\"report-builder.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],[\\\"report-builder.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],[\\\"report-builder.Export options\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"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],[\\\"report-builder.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],[\\\"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 'report-builder.Excel export')\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 'report-builder.Excel export'}}\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                'report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t '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 '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\": \"kroe+QdQ\",\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],[\\\"report-builder.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],[\\\"report-builder.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],[\\\"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],[\\\"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],[\\\"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 'report-builder.Prepare PDF report'}}\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 'report-builder.Prepare Excel report'}}\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 'report-builder.Prepare CSV report'}}\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 'report-builder.Prepare PDF report'}}</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                '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 'report-builder.Prepare CSV report'}}</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 '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 'report-builder.Subtotal'}}</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 'report-builder.Margin total'}}</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 'report-builder.There are no materials bills'}}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  '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 'report-builder.Select previously unreported items'}}\n            </button>\n  \n            <ReportBuilderPm::InvoiceTypeTable\n              @title={{t 'report-builder.Material bills'}}\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 'report-builder.Manual items'}}\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 'report-builder.Add manual item'}}\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 '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 '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                  '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 'report-builder.There are no timesheets'}}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  '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 'report-builder.Select previously unreported items'}}\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 '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 'report-builder.Manual items'}}\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 'report-builder.Add manual item'}}\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 'report-builder.Labour hours total'}}</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 '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 '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 'report-builder.There are no subcontractor bills'}}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  '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 'report-builder.Select previously unreported items'}}\n            </button>\n  \n            <ReportBuilderPm::InvoiceTypeTable\n              @title={{t '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 'report-builder.Manual items'}}\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 'report-builder.Add manual item'}}\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 'report-builder.Subcontractors subtotal'}}</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 'report-builder.Subcontractors total'}}</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\": \"3UQW2nJy\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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 'report-builder.PDF export')\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 'report-builder.PDF export'}}\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\": \"Y/FzCYLc\",\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],[\\\"report-builder.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],[\\\"report-builder.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 'settings.No suppliers'}}\n              @onLoad={{this.loadMoreSuppliers}}\n              @onSelect={{this.setSupplier}}\n              @placeholder={{t '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              '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          '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\": \"c2YAktDo\",\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],[\\\"settings.No suppliers\\\"],null],[30,0,[\\\"loadMoreSuppliers\\\"]],[30,0,[\\\"setSupplier\\\"]],[28,[37,4],[\\\"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],[\\\"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],[\\\"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 '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 '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\": \"hzYQGBmZ\",\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],[\\\"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],[\\\"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                  'estimate.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 'estimate.All estimates'}}</si.option>\n              <si.option @value='DRAFT'>{{t\n                  'estimate.Draft estimates'\n                }}</si.option>\n              <si.option @value='IMPORTED'>{{t\n                  'estimate.Imported estimates'\n                }}</si.option>\n              <si.option @value='APPROVED'>{{t\n                  'estimate.Approved estimates'\n                }}</si.option>\n              <si.option @value='REJECTED'>{{t\n                  'estimate.Rejected estimates'\n                }}</si.option>\n            </SelectInput>\n          </span>\n  \n          <span class='m-1'>\n            <Input\n              class='form-control'\n              placeholder={{t 'estimate.Search for estimates'}}\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                'estimate.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 '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 '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                        'estimate.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                        'estimate.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                        'estimate.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 'estimate.No estimates'}}</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 'estimate.Delete estimate'}}\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 'estimate.Editing estimate'}}…\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 'estimate.Creating estimate'}}…\n                  </button>\n                {{else}}\n                  <PtlInput\n                    @containerClass='form-check'\n                    @labelClass='m-0'\n                    @type='checkbox'\n                    @label={{t 'estimate.Open estimate after creation'}}\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 'estimate.Create estimate'}}</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 'estimate.Delete estimate'}}\n    @confirmText={{t 'estimate.delete estimate'}}\n    @deleteButtonText={{t 'estimate.Delete estimate'}}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteEstimate}}\n    @onCancel={{fn this.closeDeleteModal this.deletingEstimateData}}\n  >\n    <p>{{t '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 'estimate.areYouSureYouWantToDuplicateThisEstimate'}}\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              'estimate.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                'estimate.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 'estimate.pleaseSelectTheTemplatesYouWouldLikeToImport'}}</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 'estimate.Select templates'}}\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 'estimate.Importing templates'}}&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 'estimate.importMaterialsWarning'}}\n            </p>\n          {{/if}}\n  \n          <p id='labelForImportMaterials'>\n            {{t 'estimate.selectYourMaterialsQuoteFromTheListOrUploadYourOwn'}}\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 'estimate.Select an existing quote file'}}\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 'estimate.Importing materials'}}&hellip;\n            {{else}}\n              {{t 'estimate.Import materials'}}\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            'estimate.thisProcessWillGenerateTasksFromEachOfTheItemsInYourEstimate'\n          }}\n        </p>\n        <p class='fw-bold mb-2'>{{t 'estimate.Task generation options'}}:</p>\n        <label>{{t 'estimate.Labour and materials'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'estimate.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 'estimate.groupingItemsByHeadingSubheadingExplanation'}}\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 'estimate.groupingItemsBySubheadingOptionExplanation'}}\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 'estimate.groupingItemsByHeadingSubheadingExplanation'}}\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              'estimate.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 'estimate.Generate tasks'}}</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            'estimate.theEstimatesBelowWereCreatedInPricingAndAreNotYetLinkedWithAnyProject'\n          }}<br />\n          {{t\n            'estimate.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 'estimate.Select the estimates for this project'}}\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 'estimate.Importing estimates'}}&hellip;\n          {{else}}\n            {{t 'estimate.Import selected estimates'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"9RBJNQF3\",\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],[\\\"estimate.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],[\\\"estimate.All estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"estimate.Draft estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"IMPORTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"estimate.Imported estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"estimate.Approved estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"REJECTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"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],[\\\"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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.Delete estimate\\\"],null],[28,[37,4],[\\\"estimate.delete estimate\\\"],null],[28,[37,4],[\\\"estimate.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],[\\\"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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.importMaterialsWarning\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,1,\\\"labelForImportMaterials\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.Importing materials\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"estimate.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],[\\\"estimate.thisProcessWillGenerateTasksFromEachOfTheItemsInYourEstimate\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"fw-bold mb-2\\\"],[12],[1,[28,[35,4],[\\\"estimate.Task generation options\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,4],[\\\"estimate.Labour and materials\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.theEstimatesBelowWereCreatedInPricingAndAreNotYetLinkedWithAnyProject\\\"],null]],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"estimate.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],[\\\"estimate.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],[\\\"estimate.Importing estimates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"estimate.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                        'financial.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 'financial.Create a version to update your budget'}}\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 '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                          'financial.whenYouAreHappyWithYourTaskBudgetsYouCanCommitThemAsYourFirstBudgetVersion'\n                        )\n                        (t\n                          'financial.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 'financial.Create the first budget version'}}\n                      </button>\n                    {{/if}}\n  \n                  {{else}}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'financial.noneOfYourTasksHaveBudgetsToCreateABudgetCreateSomeTasksWithABudget'\n                        )\n                        (t 'financial.None of your tasks have budgets')\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                        'financial.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 'financial.Create a version to update your quote'}}\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 '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                          'financial.whenYouAreHappyWithYourTaskQuotesYouCanCommitThemAsYourFirstQuoteVersion'\n                        )\n                        (t\n                          'financial.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 'financial.Create the first quote version'}}\n                      </button>\n                    {{/if}}\n                  {{else}}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageQuoteVersions\n                        (t\n                          'financial.noneOfYourTasksHaveQuotesToCreateAQuoteCreateSomeTasksWithAQuote'\n                        )\n                        (t 'financial.None of your tasks have quotes')\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              'financial.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              'financial.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\": \"XDPfPshK\",\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],[\\\"financial.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],[\\\"financial.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],[\\\"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],[\\\"financial.whenYouAreHappyWithYourTaskBudgetsYouCanCommitThemAsYourFirstBudgetVersion\\\"],null],[28,[37,5],[\\\"financial.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],[\\\"financial.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],[\\\"financial.noneOfYourTasksHaveBudgetsToCreateABudgetCreateSomeTasksWithABudget\\\"],null],[28,[37,5],[\\\"financial.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],[\\\"financial.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],[\\\"financial.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],[\\\"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],[\\\"financial.whenYouAreHappyWithYourTaskQuotesYouCanCommitThemAsYourFirstQuoteVersion\\\"],null],[28,[37,5],[\\\"financial.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],[\\\"financial.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],[\\\"financial.noneOfYourTasksHaveQuotesToCreateAQuoteCreateSomeTasksWithAQuote\\\"],null],[28,[37,5],[\\\"financial.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],[\\\"financial.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],[\\\"financial.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 'settings.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 'settings.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 'settings.Removing you from project')\n                  (t 'settings.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'settings.Remove yourself from project')\n                  (t 'settings.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 'settings.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'settings.clientProjectPermissionsExplanation'}}\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 'settings.Can see all the tasks for this project'}}\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 'settings.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t 'settings.Gives access to see the timeline'}}\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                    'settings.withThesePermissionsThisClientCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'settings.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 'settings.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 'settings.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 'settings.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'settings.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 'settings.Can see work value data in reports'}}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'settings.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 'settings.Can see progress data in reports'}}\n                @key='canViewProgressReports'\n                @description={{t\n                  'settings.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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"noPKKUqZ\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Removing you from project\\\"],null],[28,[37,6],[\\\"settings.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"settings.Remove yourself from project\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.withThesePermissionsThisClientCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.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 'settings.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 'settings.Add client to project'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'settings.addClientsToProjectDescription'}}\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 'settings.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 'settings.donNotSeeTheClientAddThemToTheCompany'}}\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\": \"Kp3DyBxd\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.Search for subcontractors'}}\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 'settings.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 'settings.Add subcontractor to project'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'settings.addSubcontractorToProjectDescription'}}\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 'settings.Find a subcontractor'}}\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 'settings.doNotSeeTheSubcontractorAddThemToTheCompany'}}\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\": \"y7eZxfkA\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.View subcontractor details'}}\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 'settings.Removing you from project')\n                  (t 'settings.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'settings.Remove yourself from project')\n                  (t 'settings.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 'settings.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'settings.subcontractorProjectPermissionsExplanation'}}\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 'settings.Can make changes to the project'}}\n              @key='canManageProjects'\n              @description={{t 'settings.canMakeChangesToTheProjectDescription'}}\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 'settings.Can see the project budget'}}\n                @key='canViewBudgets'\n                @description={{t 'settings.canSeeTheProjectBudgetDescription'}}\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 'settings.Can create budget versions'}}\n                  @key='canManageBudgets'\n                  @description={{t 'settings.canCreateBudgetVersionsDescription'}}\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 'settings.Can see the project quote'}}\n                @key='canViewQuotes'\n                @description={{t 'settings.canSeeTheProjectQuoteDescription'}}\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 'settings.Can create quote versions'}}\n                  @key='canManageQuotes'\n                  @description={{t 'settings.canCreateQuoteVersionsDescription'}}\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 'settings.Can see the project progress'}}\n                @key='canViewProgress'\n                @description={{t\n                  'settings.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 'settings.Can create progress versions'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'settings.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 'settings.Can see all the tasks for this project'}}\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 'settings.Can manage tasks for the project'}}\n                @key='canManageTasks'\n                @description={{t\n                  'settings.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 'settings.Can see all documents for the project'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'settings.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 'settings.canManageAllDocumentsForTheProject'}}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'settings.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 'settings.Can see all products for the project'}}\n                @key='canViewProducts'\n                @description={{t\n                  'settings.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 'settings.Can manage all products for the project'}}\n                  @key='canManageProducts'\n                  @description={{t\n                    'settings.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 'settings.Can see and manage estimates'}}\n                @key='canManageEstimates'\n                @description={{t 'settings.canSeeAndManageEstimatesDescription'}}\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 'settings.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t 'settings.Gives access to see the timeline'}}\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 'settings.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'settings.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 'settings.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'settings.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                    'settings.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'settings.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'settings.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 'settings.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 'settings.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'settings.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 'settings.Can see work value data in reports'}}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'settings.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 'settings.Can see progress data in reports'}}\n                @key='canViewProgressReports'\n                @description={{t\n                  'settings.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 'settings.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t 'settings.canUseHealthAndSafetyDescription'}}\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 'settings.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'settings.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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"yPiIKGLE\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Removing you from project\\\"],null],[28,[37,6],[\\\"settings.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"settings.Remove yourself from project\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Can make changes to the project\\\"],null],\\\"canManageProjects\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see the project budget\\\"],null],\\\"canViewBudgets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can create budget versions\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see the project quote\\\"],null],\\\"canViewQuotes\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can create quote versions\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see the project progress\\\"],null],\\\"canViewProgress\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can create progress versions\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage tasks for the project\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all documents for the project\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageAllDocumentsForTheProject\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all products for the project\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all products for the project\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see and manage estimates\\\"],null],\\\"canManageEstimates\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.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 'settings.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 'settings.Add user to project'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'settings.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 'settings.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 'settings.doNotSeeTheUserAddThemToTheCompany'}}\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\": \"5eOhe7Tz\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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 'settings.Removing you from project')\n                  (t 'settings.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'settings.Remove yourself from project')\n                  (t 'settings.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 'settings.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'settings.userProjectPermissionsExplanation'}}\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 'settings.Can make changes to the project'}}\n              @key='canManageProjects'\n              @description={{t 'settings.canMakeChangesToTheProjectDescription'}}\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 'settings.Can see the project budget'}}\n                @key='canViewBudgets'\n                @description={{t 'settings.canSeeTheProjectBudgetDescription'}}\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 'settings.Can create budget versions'}}\n                  @key='canManageBudgets'\n                  @description={{t 'settings.canCreateBudgetVersionsDescription'}}\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 'settings.Can see the project quote'}}\n                @key='canViewQuotes'\n                @description={{t 'settings.canSeeTheProjectQuoteDescription'}}\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 'settings.Can create quote versions'}}\n                  @key='canManageQuotes'\n                  @description={{t 'settings.canCreateQuoteVersionsDescription'}}\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 'settings.Can see the project progress'}}\n                @key='canViewProgress'\n                @description={{t\n                  'settings.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 'settings.Can create progress versions'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'settings.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 'settings.Can see all the tasks for the project'}}\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 'settings.Can manage tasks for the project'}}\n                @key='canManageTasks'\n                @description={{t\n                  'settings.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 'settings.Can see all documents for the project'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'settings.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 'settings.canManageAllDocumentsForTheProject'}}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'settings.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 'settings.Can see all products for the project'}}\n                @key='canViewProducts'\n                @description={{t\n                  'settings.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 'settings.Can manage all products for the project'}}\n                  @key='canManageProducts'\n                  @description={{t\n                    'settings.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 'settings.Can see and manage estimates'}}\n                @key='canManageEstimates'\n                @description={{t 'settings.canSeeAndManageEstimatesDescription'}}\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 'settings.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t 'settings.Gives access to see the timeline'}}\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 'settings.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t 'settings.canMakeSchedulingChangesDescription'}}\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 'settings.Can see and manage timesheets'}}\n                  @key='canManageTimesheets'\n                  @description={{t\n                    'settings.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 'settings.Can see purchase orders'}}\n                  @description={{t 'settings.canSeePurchaseOrdersDescription'}}\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 'settings.canManagePurchaseOrders'}}\n                    @description={{t\n                      'settings.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 'settings.canApprovePurchaseOrders'}}\n                    @description={{t\n                      'settings.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 'settings.Can see stage payments'}}\n                  @description={{t 'settings.canSeeStagePaymentsDescription'}}\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 'settings.canManageStagePayments'}}\n                    @description={{t\n                      'settings.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                    'settings.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t 'settings.withThesePermissionsThisUserCanNotSeeAnyReports'}}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'settings.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 'settings.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 'settings.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'settings.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 'settings.Can see work value data in reports'}}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'settings.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 'settings.Can see progress data in reports'}}\n                @key='canViewProgressReports'\n                @description={{t\n                  'settings.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 'settings.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t 'settings.canUseHealthAndSafetyDescription'}}\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 'settings.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'settings.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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"ePH7JAtY\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Removing you from project\\\"],null],[28,[37,6],[\\\"settings.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"settings.Remove yourself from project\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Can make changes to the project\\\"],null],\\\"canManageProjects\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see the project budget\\\"],null],\\\"canViewBudgets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can create budget versions\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see the project quote\\\"],null],\\\"canViewQuotes\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can create quote versions\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see the project progress\\\"],null],\\\"canViewProgress\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can create progress versions\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage tasks for the project\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all documents for the project\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageAllDocumentsForTheProject\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all products for the project\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all products for the project\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see and manage estimates\\\"],null],\\\"canManageEstimates\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see purchase orders\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.canManagePurchaseOrders\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.canApprovePurchaseOrders\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see stage payments\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.canManageStagePayments\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.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 'settings.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 'settings.Add worker to project'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'settings.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 'settings.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 'settings.doNotSeeTheWorkerAddThemToTheCompany'}}\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\": \"tPBleRTN\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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 'settings.Removing from project'}}\n              {{else}}\n                {{t 'settings.Remove from project'}}\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 'settings.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'settings.workerProjectPermissionsExplanation'}}\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 'settings.Can see all the tasks for this project'}}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @description={{t\n                'settings.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 'settings.canUseHealthAndSafety'}}\n              @key='canCreateHealthAndSafety'\n              @description={{t 'settings.canUseHealthAndSafetyDescription'}}\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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"0NGEU36l\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Removing from project\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"settings.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],[\\\"settings.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.No suppliers'}}\n            @onLoad={{this.loadMoreSuppliers}}\n            @onSelect={{this.setSupplier}}\n            @placeholder={{t 'product.Filter by supplier'}}\n          />\n        </div>\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t '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            '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          '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\": \"LqpmNzPZ\",\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],[\\\"settings.No suppliers\\\"],null],[30,0,[\\\"loadMoreSuppliers\\\"]],[30,0,[\\\"setSupplier\\\"]],[28,[37,4],[\\\"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],[\\\"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],[\\\"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],[\\\"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 '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 '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 'progress.labourProgressExplanation'}}\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 @text={{t 'progress.completeExplanation'}}>\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 '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 '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 'progress.Make a progress version'}}\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        {{#if this.numberOfChanges}}\n          {{t\n            'progress.thereHasBeenXChangeToTheProgressSinceTheLastVersion'\n            number=this.numberOfChanges\n            changes=(pluralize this.numberOfChanges 'change')\n          }}\n        {{else}}\n          {{t 'progress.thereHaveBeenNoChangesToTheProgressSinceTheLastVersion'}}\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\": \"JvCaK8eo\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"progress.thereHasBeenXChangeToTheProgressSinceTheLastVersion\\\"],[[\\\"number\\\",\\\"changes\\\"],[[30,0,[\\\"numberOfChanges\\\"]],[28,[37,29],[[30,0,[\\\"numberOfChanges\\\"]],\\\"change\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,4],[\\\"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 '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 'settings.Charge out rates'}}\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 'settings.Edit worker charge out rates'}}</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 'settings.Xero tracking category'}}\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 'settings.Reload Xero category options')\n                  isLoading=this.syncXeroTrackingCategoryOptions.isRunning\n                  loadingText=(t 'settings.Loading Xero tracking options')\n                }}\n                @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                disabled={{this.saveProject.isRunning}}\n                @description={{t\n                  '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 'settings.Primary contact details'}}</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 'settings.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 'settings.Postal address'}}\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 'settings.Delete project'}}\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 'settings.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 'settings.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 'settings.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 'settings.Delete project'}}\n    @messages={{this.deleteMessages}}\n    @confirmText={{t 'settings.delete project'}}\n    @deleteButtonText={{t 'settings.Delete project'}}\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 '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 'settings.youCannotDeleteThisProjectBecauseItHasCostsAssignedToIt'}}\n        </p>\n        <p>{{t 'settings.wouldYouLikeToArchiveTheProjectInstead'}}</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 'settings.Archiving project'}}…\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 'settings.Archive project'}}\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\": \"dhqbAhOu\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"settings.Reload Xero category options\\\"],null],[30,0,[\\\"syncXeroTrackingCategoryOptions\\\",\\\"isRunning\\\"]],[28,[37,5],[\\\"settings.Loading Xero tracking options\\\"],null]]]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,5],[\\\"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],[\\\"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],[\\\"settings.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],[\\\"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],[\\\"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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Delete project\\\"],null],[30,0,[\\\"deleteMessages\\\"]],[28,[37,5],[\\\"settings.delete project\\\"],null],[28,[37,5],[\\\"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],[\\\"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],[\\\"settings.youCannotDeleteThisProjectBecauseItHasCostsAssignedToIt\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,5],[\\\"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],[\\\"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],[\\\"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 '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                  'stage-payments.All stages'\n                }}</si.option>\n              <si.option @value='CLAIMED'>{{t\n                  'stage-payments.Claimed stages'\n                }}</si.option>\n              <si.option @value='UNCLAIMED'>{{t\n                  '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 '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 'stage-payments.Add multiple'}}\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 'stage-payments.Stages allocated'}}</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 'stage-payments.Remaining quote'}}</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 'stage-payments.Set value'}}\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 'stage-payments.thisProjectDoesNotHaveAnyStagesPaymentsYet'}}\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 'stage-payments.Create stages'}}\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 'stage-payments.Enter number of stages'}}<sup\n            class='text-danger'\n          >*</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 'stage-payments.Use tasks value'}}\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 'stage-payments.Use remaining quote'}}\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            '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 '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 'stage-payments.Additional notes'}}\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 'stage-payments.Include tasks'}}\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 'stage-payments.Include checklist'}}\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\": \"swK1YgaZ\",\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],[\\\"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],[\\\"stage-payments.All stages\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLAIMED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"stage-payments.Claimed stages\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"UNCLAIMED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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],[\\\"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                  '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                '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 '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 'task.youHaveNotCreatedAnyTasksYet')\n                (t 'task.There are no tasks')\n              }}\n            </b>\n          </p>\n          {{#if this.canManageTasks}}\n            <p class='mt-0 mb-3'>\n              {{t 'task.Create your first task to get started'}}\n            </p>\n            <div class='d-flex'>\n              <Input\n                aria-label='New task name'\n                placeholder={{t 'task.Task name'}}\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 '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\": \"idhMqC9C\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"task.youHaveNotCreatedAnyTasksYet\\\"],null],[28,[37,4],[\\\"task.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],[\\\"task.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],[\\\"task.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],[\\\"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            'financial.thisBudgetAndQuoteHaveBeenModifiedToApplyTheseChangesToTheProject'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              '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            'financial.thisBudgetHasBeenModifiedToApplyTheseChangesToTheProjectBudget'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'financial.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            'financial.thisQuoteHasBeenModifiedToApplyTheseChangesToTheProjectQuote'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'financial.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 'financial.Update budget'}}\n                  </button>\n                {{/if}}\n              {{else}}\n                <p class='m-0 mb-3'>\n                  {{if\n                    this.canManageBudget\n                    (t\n                      'financial.createABudgetForThisTaskToCompareYourCostsAgainst'\n                    )\n                    (t 'financial.There is no budget for this task')\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 'financial.Create a budget'}}\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 'financial.Update quote'}}\n                  </button>\n                {{/if}}\n              {{else}}\n                <p class='m-0 mb-3'>\n                  {{if\n                    this.canManageQuote\n                    (t\n                      'financial.createAQuoteForThisTaskToCompareYourCostsAgainst'\n                    )\n                    (t 'financial.There is no quote for this task')\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 'financial.Create a quote'}}\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 'financial.Use total from products'}}:\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                    'financial.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 'financial.Updating budget'}}&hellip;\n            {{else}}\n              {{t 'financial.Update budget'}}\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={{t\n                    (concat\n                      'common.'\n                      (convert-to-lowercase\n                        this.task.effectiveProfitMargin.labourPercentage.type\n                      )\n                    )\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 '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 'financial.There is no labour budget')\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={{t\n                    (concat\n                      'common.'\n                      (convert-to-lowercase\n                        this.task.effectiveProfitMargin.materialsPercentage.type\n                      )\n                    )\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 '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 'financial.There is no materials budget')\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={{t\n                    (concat\n                      'common.'\n                      (convert-to-lowercase\n                        this.task.effectiveProfitMargin.subcontractorsPercentage.type\n                      )\n                    )\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 '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 'financial.There is no subcontractors budget')\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={{t\n                    (concat\n                      'common.'\n                      (convert-to-lowercase\n                        this.task.effectiveProfitMargin.sumsPercentage.type\n                      )\n                    )\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 '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 'financial.There is no sums budget')\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                    '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 'financial.Updating quote'}}&hellip;\n            {{else}}\n              {{t 'financial.Update quote'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"GvxtxhNc\",\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],[\\\"financial.thisBudgetAndQuoteHaveBeenModifiedToApplyTheseChangesToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"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],[\\\"financial.thisBudgetHasBeenModifiedToApplyTheseChangesToTheProjectBudget\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"financial.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],[\\\"financial.thisQuoteHasBeenModifiedToApplyTheseChangesToTheProjectQuote\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"financial.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],[\\\"financial.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],[\\\"financial.createABudgetForThisTaskToCompareYourCostsAgainst\\\"],null],[28,[37,4],[\\\"financial.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],[\\\"financial.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],[\\\"financial.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],[\\\"financial.createAQuoteForThisTaskToCompareYourCostsAgainst\\\"],null],[28,[37,4],[\\\"financial.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],[\\\"financial.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],[\\\"financial.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],[\\\"financial.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],[\\\"financial.Updating budget\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"financial.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,4],[[28,[37,30],[\\\"common.\\\",[28,[37,31],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],null]],null]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]],[28,[37,30],[\\\"Default \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"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,30],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"financial.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,4],[[28,[37,30],[\\\"common.\\\",[28,[37,31],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"type\\\"]]],null]],null]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"value\\\"]],[28,[37,30],[[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],[\\\"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,30],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"financial.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,4],[[28,[37,30],[\\\"common.\\\",[28,[37,31],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null]],null]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"value\\\"]],[28,[37,30],[[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],[\\\"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,30],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"financial.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,4],[[28,[37,30],[\\\"common.\\\",[28,[37,31],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"type\\\"]]],null]],null]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"value\\\"]],[28,[37,30],[[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],[\\\"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,30],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"financial.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],[\\\"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],[\\\"financial.Updating quote\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"financial.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\\\",\\\"concat\\\",\\\"convert-to-lowercase\\\"]]\",\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 'settings.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 'settings.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 'settings.Removing you from task')\n                  (t 'settings.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'settings.Remove yourself from task')\n                  (t 'settings.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 'settings.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'settings.clientTaskPermissionsExplanation'}}\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 'settings.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 'settings.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 'settings.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 'settings.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t 'settings.canSeeAllTaskDocumentsDescription'}}\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 'settings.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t 'settings.Gives access to see the timeline'}}\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                    'settings.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t 'settings.withThesePermissionsThisUserCanNotSeeAnyReports'}}\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 'settings.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 'settings.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 'settings.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'settings.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 'settings.Can see work value data in reports'}}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'settings.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 'settings.Can see progress data in reports'}}\n                @key='canViewProgressReports'\n                @description={{t\n                  'settings.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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"PReSitFd\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Removing you from task\\\"],null],[28,[37,6],[\\\"settings.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"settings.Remove yourself from task\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.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 'settings.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 'settings.Add client to task'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'settings.addClientsToTaskExplanation'}}\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 'settings.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 'settings.doNotSeeTheClientAddThemToTheProject'}}\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\": \"vMRJOPOC\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.Search for subcontractors'}}\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 'settings.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 'settings.Add subcontractor to task'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'settings.addSubcontractorToTaskExplanation'}}\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 'settings.Find a subcontractor'}}\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 'settings.doNotSeeTheSubcontractorAddThemToTheProject'}}\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\": \"1IrMcBJ7\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.View subcontractor details'}}\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 'settings.Removing you from task')\n                  (t 'settings.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'settings.Remove yourself from task')\n                  (t 'settings.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 'settings.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'settings.subcontractorTaskPermissionsExplanation'}}\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 'settings.Can make changes to the task'}}\n              @key='canManageTasks'\n              @description={{t 'settings.canMakeChangesToTheTaskDescription'}}\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 'settings.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 'settings.Can manage the task budget'}}\n                  @key='canManageBudgets'\n                  @description={{t 'settings.canManageTheTaskBudgetDescription'}}\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 'settings.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 'settings.Can manage the task quote'}}\n                  @key='canManageQuotes'\n                  @description={{t 'settings.canManageTheTaskQuoteDescription'}}\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 'settings.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 'settings.Can manage the task progress'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'settings.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 'settings.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t 'settings.canSeeAllTaskDocumentsDescription'}}\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 'settings.Can manage all task documents'}}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'settings.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 'settings.Can see all products for the task'}}\n                @key='canViewProducts'\n                @description={{t\n                  'settings.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 'settings.Can manage all products for the task'}}\n                  @key='canManageProducts'\n                  @description={{t\n                    'settings.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 'settings.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t 'settings.Gives access to see the timeline'}}\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 'settings.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t 'settings.canMakeSchedulingChangesDescription'}}\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 'settings.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'settings.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                    'settings.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'settings.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'settings.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 'settings.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 'settings.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'settings.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 'settings.Can see work value data in reports'}}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'settings.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 'settings.Can see progress data in reports'}}\n                @key='canViewProgressReports'\n                @description={{t\n                  'settings.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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"tCgD+hHh\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Removing you from task\\\"],null],[28,[37,6],[\\\"settings.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"settings.Remove yourself from task\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Can make changes to the task\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage the task budget\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage the task quote\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage the task progress\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all task documents\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all products for the task\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all products for the task\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.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 'settings.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 'settings.Add user to task'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'settings.addUserToTaskExplanation'}}\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 'settings.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 'settings.doNotSeeTheUserAddThemToTheProject'}}\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\": \"xNCGg56G\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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 'settings.Removing you from task')\n                  (t 'settings.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'settings.Remove yourself from task')\n                  (t 'settings.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 'settings.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'settings.userTaskPermissionsExplanation'}}\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 'settings.Can make changes to the task'}}\n              @key='canManageTasks'\n              @description={{t 'settings.canMakeChangesToTheTaskDescription'}}\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 'settings.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 'settings.Can manage the task budget'}}\n                  @key='canManageBudgets'\n                  @description={{t 'settings.canManageTheTaskBudgetDescription'}}\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 'settings.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 'settings.Can manage the task quote'}}\n                  @key='canManageQuotes'\n                  @description={{t 'settings.canManageTheTaskQuoteDescription'}}\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 'settings.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 'settings.Can manage the task progress'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'settings.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 'settings.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t 'settings.canSeeAllTaskDocumentsDescription'}}\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 'settings.Can manage all documents'}}\n                  @key='canManageFileStorage'\n                  @description={{t 'settings.canManageAllDocumentsDescription'}}\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 'settings.Can see all products for the task'}}\n                @key='canViewProducts'\n                @description={{t\n                  'settings.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 'settings.Can manage all products for the task'}}\n                  @key='canManageProducts'\n                  @description={{t\n                    'settings.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 'settings.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t 'settings.Gives access to see the timeline'}}\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 'settings.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t 'settings.canMakeSchedulingChangesDescription'}}\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 'settings.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'settings.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                    'settings.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t 'settings.withThesePermissionsThisUserCanNotSeeAnyReports'}}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'settings.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 'settings.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 'settings.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'settings.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 'settings.Can see work value data in reports'}}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'settings.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 'settings.Can see progress data in reports'}}\n                @key='canViewProgressReports'\n                @description={{t\n                  'settings.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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"jL90xUh7\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Removing you from task\\\"],null],[28,[37,6],[\\\"settings.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"settings.Remove yourself from task\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Can make changes to the task\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage the task budget\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage the task quote\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage the task progress\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all documents\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all products for the task\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all products for the task\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.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 'settings.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 'settings.Add worker to task'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'settings.addWorkerToTaskExplanation'}}\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 'settings.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 'settings.doNotSeeTheWorkerAddThemToTheProject'}}\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\": \"auiLteMM\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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 'settings.Removing from task'}}\n            {{else}}\n              {{t 'settings.Remove from task'}}\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"ZbudkOXP\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Removing from task\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"settings.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 '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          '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\": \"KAMH4wzH\",\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],[\\\"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],[\\\"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 '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 '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 'settings.activeTasksAreAvailableToLogCostsAgainst'}}\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 'settings.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 'settings.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 'settings.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 'settings.Delete task'}}\n    @messages={{this.deleteMessages}}\n    @confirmText={{this.deleteConfirmText}}\n    @deleteButtonText={{t\n      'settings.deleteTask'\n      subtasks=(if\n        this.model.task.last.value.activeChildren.length\n        (t 'settings.and its subtasks')\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.Move task dependencies description'\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.Move items & delete task'\n            }}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"EPFaM9lU\",\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],[\\\"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],[\\\"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],[\\\"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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Delete task\\\"],null],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"settings.deleteTask\\\"],[[\\\"subtasks\\\"],[[52,[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"activeChildren\\\",\\\"length\\\"]],[28,[37,5],[\\\"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.Move task dependencies description\\\"],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.Move items & delete task\\\"],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                '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\": \"qcY5LyBu\",\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],[\\\"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 '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 '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\": \"2bcHNdEh\",\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],[\\\"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],[\\\"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 'scheduling.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 'scheduling.Draw dependencies'}}\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 'scheduling.Stretch tasks to fill ticks'}}\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 'scheduling.Highlight non-working time'}}\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 'scheduling.Show column lines'}}\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 'scheduling.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 'scheduling.Show progress lines'}}\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 'scheduling.Show parent area'}}\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 'scheduling.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 'scheduling.Hide schedule'}}\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 'scheduling.Import tasks'}}\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 'scheduling.Choose a project to view its timeline'}}\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 'scheduling.There are no projects yet'}}\n          </b>\n        </p>\n        {{#if (includes-feature-flags 'canManageProjects')}}\n          <LinkTo @route='entity.builda-price.projects' class='btn btn-primary'>\n            {{t 'scheduling.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\": \"KyQUvpj9\",\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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.Hide schedule\\\"],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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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],[\\\"scheduling.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 'settings.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 'settings.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 'settings.Bill Auto Mapping Directives'}}</h2>\n        </div>\n  \n        <p>\n          {{t 'settings.theDirectivesBelowWillBeUsedWhenAnBillIsImported'}}\n          {{! TODO make sure there is an auto-map button on the invoices }}\n        </p>\n        <p>\n          {{t\n            'settings.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes'\n          }}\n        </p>\n      </div>\n  \n      <div class='{{if this.showInvalid \"show-invalid\"}}'>\n        <div class='float-end'>\n          <span>{{t 'settings.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                'settings.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                    'settings.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide'\n                  }}</p>\n                <p>{{t 'settings.youDonNotHaveAnyBillReferenceDirectivesYet'}}</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 'settings.billReferenceDirectivesForClosedProjects'}}\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 'settings.Merchant Account Directives'}}</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                  'settings.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet'\n                }}\n                {{t 'settings.thisSectionWillBecomeAvailableOnceWeDo'}}\n                {{t 'settings.theAccountsMustBeProjectSpecificSubAccounts'}}</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                      'settings.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount'\n                    }}</p>\n                  <p>{{t\n                      'settings.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 'settings.merchantAccountDirectivesForClosedProjects'}}\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 'settings.areYouSureYouWantToDeleteThisDirective'}}\n          {{t 'settings.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\": \"3uRZjVA/\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Bill Auto Mapping Directives\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"settings.theDirectivesBelowWillBeUsedWhenAnBillIsImported\\\"],null]],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"settings.thisSectionWillBecomeAvailableOnceWeDo\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.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],[\\\"settings.areYouSureYouWantToDeleteThisDirective\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.Saving details'}}&hellip;\n              {{else}}\n                {{t 'settings.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 'settings.Subscription'}}</h3>\n        <p class='p'>{{t\n            'settings.clickTheButtonBelowToManageYourSubscription'\n          }}</p>\n        <div class='d-flex'>\n          <button\n            class='button'\n            type='button'\n            {{on 'click' (action 'openChargebee')}}\n          >{{t 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.Purchase order details'}}</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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.Profit margins'}}</h3>\n            <p>\n              {{t\n                'settings.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection'\n              }}\n              {{t\n                'settings.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget'\n              }}\n            </p>\n            <PtlInput\n              @type='select'\n              @toolTip={{t\n                'settings.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit'\n              }}\n              @label={{t 'settings.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 'settings.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 'settings.additionalLabourMarginDescription'}}\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 'settings.updating profit margins'}}…\n                {{else}}\n                  {{t 'settings.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 'report-builder.First break down by'}}…\n                {{else}}\n                  …{{t '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\": \"WuZm1QBW\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Saving details\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.Subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Profit margins\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"settings.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection\\\"],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit\\\"],null],[28,[37,4],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.updating profit margins\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"settings.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],[\\\"report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                …\\\"],[1,[28,[35,4],[\\\"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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.alsoCreateInLabel' label=this.accountingPlatform.label)\n              (t\n                'settings.syncWithLabelOnSave' 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 'settings.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                  'settings.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                      'settings.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                'settings.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 'settings.viewInLabel' label=this.accountingPlatform.label}}\n            </a>\n          </div>\n        {{/if}}\n        <p>\n          {{t 'settings.areYouSureYouWantToDeleteTheContact'}}\n          {{t 'settings.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\": \"vsIQhm1m\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.alsoCreateInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]],[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.areYouSureYouWantToDeleteTheContact\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.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 'settings.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 'settings.deleteAccountingPlatformSuppliersForNextSync'}}\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 'settings.Are you sure you want to delete'}}\n        {{pluralize this.selectedSupplierIds.size (t 'common.supplier')}}?\n        {{t 'settings.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 'settings.Fix duplicate suppliers'}}</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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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                                'settings.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 'settings.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                                'settings.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                                'settings.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\": \"U2pjasGN\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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 'settings.Integration options'}}</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 'settings.Saving options'}}&hellip;\n            {{else}}\n              {{t 'settings.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 'settings.IPS'}}</h3>\n  \n        {{#if this.ips.ready}}\n          <IpsUsage class='mt-0 mb-3' />\n        {{/if}}\n  \n        {{#if this.model.ipsContactInfo.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          {{#if this.model.ipsContactInfo.last.value}}\n            <div class='mb-3'>\n              <label class='mb-1' for='document-email'>\n                {{t 'settings.Your IPS email address'}}\n              </label>\n              <Input\n                class='form-control'\n                id='document-email'\n                @type='input'\n                @value={{this.model.ipsContactInfo.last.value.email}}\n                disabled={{true}}\n              />\n              <div class='form-text text-muted'>\n                {{t\n                  'settings.invoicesAndCreditNotesSentToThisAddressWillAppearInYourBills'\n                }}\n              </div>\n            </div>\n            <div class='mb-3'>\n              <label class='mb-1' for='contact-email'>\n                {{t 'settings.Email address for unprocessed documents'}}\n              </label>\n              <Input\n                class='form-control\n                  {{if this.ipsContactEmailErrorMessage \"is-invalid\"}}'\n                id='contact-email'\n                @type='email'\n                @value={{this.ipsContactEmail}}\n                {{on 'blur' this.validateEmail}}\n              />\n              {{#if this.ipsContactEmailErrorMessage}}\n                <div class='invalid-feedback d-block'>\n                  {{this.ipsContactEmailErrorMessage}}\n                </div>\n              {{/if}}\n              <div class='form-text text-muted'>\n                {{t\n                  'settings.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n              </div>\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.updateIpsContactEmail.isRunning}}\n                {{on\n                  'click'\n                  (perform this.updateIpsContactEmail this.ipsContactEmail)\n                }}\n              >\n                {{#if this.updateIpsContactEmail.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          {{else}}\n            <p class='mt-0'>\n              {{t 'settings.noIpsConnectionFoundPleaseContactSupport'}}\n            </p>\n          {{/if}}\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 'settings.Connect Xero organisation'}}</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 'settings.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 'settings.Send credit notes with status'}}\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 'settings.Send timesheets with status'}}\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                  'settings.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                  'settings.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically'\n                }}</p>\n              <p>{{t\n                  'settings.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick'\n                }}\n                <i>{{t 'settings.Request Integration'}}</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 'settings.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 'settings.Requesting Integration'}}&hellip;\n                {{else}}\n                  {{t 'settings.Request Integration'}}\n                {{/if}}\n              </button>\n            </div>\n  \n            {{#if this.requestedItmStores.length}}\n              <div>\n                <p>{{t\n                    'settings.integrationRequestsHaveBeenSentToTheFollowingStores'\n                  }}</p>\n                <p>{{t\n                    'settings.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease'\n                  }}\n                  <a class='link' href='#' {{on 'click' this.contactSupport}}>{{t\n                      'settings.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 'settings.yourIntegrationRequestsWillAppearHere'}}</p>\n              </div>\n            {{/if}}\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"9AP1w43M\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Saving options\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.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\\\",\\\"ipsContactInfo\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"ipsContactInfo\\\",\\\"last\\\",\\\"value\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"document-email\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"settings.Your IPS email address\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,22],[[24,0,\\\"form-control\\\"],[24,1,\\\"document-email\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"input\\\",[30,0,[\\\"model\\\",\\\"ipsContactInfo\\\",\\\"last\\\",\\\"value\\\",\\\"email\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"settings.invoicesAndCreditNotesSentToThisAddressWillAppearInYourBills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"contact-email\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"settings.Email address for unprocessed documents\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,22],[[16,0,[29,[\\\"form-control\\\\n                \\\",[52,[30,0,[\\\"ipsContactEmailErrorMessage\\\"]],\\\"is-invalid\\\"]]]],[24,1,\\\"contact-email\\\"],[4,[38,16],[\\\"blur\\\",[30,0,[\\\"validateEmail\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"email\\\",[30,0,[\\\"ipsContactEmail\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ipsContactEmailErrorMessage\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"ipsContactEmailErrorMessage\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"settings.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],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,[\\\"updateIpsContactEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updateIpsContactEmail\\\"]],[30,0,[\\\"ipsContactEmail\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateIpsContactEmail\\\",\\\"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\\\"]],[]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"settings.noIpsConnectionFoundPleaseContactSupport\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[\\\"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,26],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],[\\\"settings.Connect Xero organisation\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[44,[[28,[37,28],[[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],[\\\"settings.Send bills with status\\\"],null],\\\"defaultInvoiceStatus\\\",[30,0,[\\\"defaultInvoiceStatusOptions\\\"]],[30,2],[28,[37,29],[[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],[\\\"settings.Send credit notes with status\\\"],null],\\\"defaultCreditNoteStatus\\\",[30,0,[\\\"defaultCreditNoteStatusOptions\\\"]],[30,2],[28,[37,29],[[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],[\\\"settings.Send timesheets with status\\\"],null],\\\"defaultTimesheetStatus\\\",[30,0,[\\\"defaultTimesheetStatusOptions\\\"]],[30,2],[28,[37,29],[[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,2]],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\\\"]],[2]]]],[]],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,26],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],[\\\"settings.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],[\\\"settings.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"settings.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"i\\\"],[12],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.Select ITM stores\\\"],null],[28,[37,36],[[28,[37,37],[[30,0,[\\\"selectedItmStores\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[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],[\\\"settings.Requesting Integration\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.integrationRequestsHaveBeenSentToTheFollowingStores\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"settings.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease\\\"],null]],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"link\\\"],[24,6,\\\"#\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"contactSupport\\\"]]],null],[12],[1,[28,[35,4],[\\\"settings.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,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"status\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,31],[[30,4,[\\\"status\\\"]],\\\"Connected\\\"],null],[28,[37,31],[[30,4,[\\\"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,4]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,26],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,4,[\\\"status\\\"]],\\\"Canceled\\\"],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"reconnectITmStoreRequest\\\"]],[30,4]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,26],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\\\"]],[4]],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,26],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"cogs\\\",true,\\\"2\\\"]],null],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"settings.yourIntegrationRequestsWillAppearHere\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"feature\\\",\\\"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\\\",\\\"label\\\",\\\"input\\\",\\\"p\\\",\\\"includes-some-feature-flags\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"gt\\\",\\\"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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.Saving client'}}&hellip;\n              {{else}}\n                {{if\n                  this.user.isNew\n                  (t 'settings.Create client')\n                  (t 'settings.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 'settings.Deleting client'}}&hellip;\n              {{else}}\n                {{t 'settings.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 (t 'settings.Login as') ' ' this.user.fullName}}\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 'settings.Permissions'}}</h3>\n          <p class='mb-3'>\n            {{t 'settings.clientEntityPermissionsExplanation'}}\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 'settings.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\": \"+LCHvRUr\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Saving client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"settings.Create client\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Deleting client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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\": \"7kKO8Ftu\",\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],[\\\"settings.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],[\\\"settings.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 'settings.Search for subcontractors'}}\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 'settings.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\": \"0vJNpWtV\",\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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'settings.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 'settings.Saving subcontractor'}}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t 'settings.Create subcontractor')\n                    (t 'settings.Save subcontractor')\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 (t 'settings.Login as') ' ' this.user.fullName}}\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 'settings.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 'settings.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'settings.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 'settings.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'settings.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 'settings.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 'settings.Can manage all projects'}}\n                @description={{t 'settings.canManageAllProjectsDescription'}}\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 'settings.Can see all tasks'}}\n              @description={{t 'settings.Lets the user see all tasks'}}\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 'settings.Can manage all tasks'}}\n                @description={{t 'settings.canManageAllTasksDescription'}}\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 'settings.Can see all project budgets'}}\n                @description={{t 'settings.canSeeAllProjectBudgetsDescription'}}\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 'settings.Can manage all project budgets'}}\n                  @description={{t\n                    'settings.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 'settings.Can see all project quotes'}}\n                @description={{t 'settings.canSeeAllProjectQuotesDescription'}}\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 'settings.Can manage all project quotes'}}\n                  @description={{t\n                    'settings.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 'settings.Can see all project progress'}}\n                @description={{t 'settings.canSeeAllProjectProgressDescription'}}\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 'settings.Can manage all project progress'}}\n                  @description={{t\n                    'settings.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 'settings.Can see all documents'}}\n                @description={{t 'settings.canSeeAllDocumentsDescription'}}\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 'settings.Can manage all documents'}}\n                  @description={{t 'settings.canManageAllDocumentsDescription'}}\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 'settings.Can see all products'}}\n                @description={{t 'settings.canSeeAllProductsDescription'}}\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 'settings.Can manage all products'}}\n                  @description={{t 'settings.canManageAllProductsDescription'}}\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 'settings.Can make estimates'}}\n                @key='canEstimate'\n                @description={{t 'settings.canMakeEstimatesDescription'}}\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 'settings.canManageEstimateSettings'}}\n                @key='canManageEstimateSettings'\n                @description={{t 'settings.canManageEstimateSettingsDescription'}}\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 'settings.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t 'settings.Gives access to see the timeline'}}\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 'settings.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t 'settings.canMakeSchedulingChangesDescription'}}\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 'settings.Can see all timesheets and notes'}}\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 'settings.Can manage all timesheets and notes'}}\n                    @description={{t\n                      'settings.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 'settings.Timesheet workers'}}\n                  @key='workers'\n                  @description={{t 'settings.timesheetWorkersDescription'}}\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                    'settings.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 'settings.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 'settings.Can manage all bills'}}\n                    @description={{t\n                      'settings.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                    'settings.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'settings.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n  \n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'settings.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 'settings.Can see all 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 'settings.canSeeAllCostDataInReports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'settings.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 'settings.Can see all work value data in reports'}}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'settings.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 'settings.Can see all progress data in reports'}}\n                @key='canViewProgressReports'\n                @description={{t\n                  'settings.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 'settings.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t 'settings.canUseHealthAndSafetyDescription'}}\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 'settings.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'settings.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 'settings.canViewWorkers'}}\n              @key='canViewWorkers'\n              @description={{t 'settings.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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"6ggJ+pV0\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Saving subcontractor\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"settings.Create subcontractor\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage all projects\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all tasks\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all tasks\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all project budgets\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all project quotes\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all project progress\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all project progress\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all documents\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all documents\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all products\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all products\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage all bills\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.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 'settings.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\": \"78npO7Y1\",\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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'settings.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 (t 'settings.Login as') ' ' this.user.fullName}}\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 'settings.Saving user'}}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t 'settings.Create user')\n                    (t 'settings.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 'settings.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 'settings.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'settings.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 'settings.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 'settings.Can be a company administrator'}}\n              @key='isCompanyAdministrator'\n              @description={{t 'settings.canBeACompanyAdministratorDescription'}}\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 'settings.Can be a company manager'}}\n                @key='canManageEverything'\n                @description={{t 'settings.canBeACompanyManagerDescription'}}\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 'settings.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 'settings.Can manage all projects'}}\n                      @description={{t\n                        'settings.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 'settings.Can see all tasks'}}\n                      @description={{t 'settings.Lets the user see all tasks'}}\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 'settings.Can manage all tasks'}}\n                      @description={{t 'settings.canManageAllTasksDescription'}}\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 'settings.Can see all project budgets'}}\n                      @description={{t\n                        'settings.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 'settings.Can manage all project budgets'}}\n                        @description={{t\n                          'settings.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 'settings.Can see all project quotes'}}\n                      @description={{t\n                        'settings.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 'settings.Can manage all project quotes'}}\n                        @description={{t\n                          'settings.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 'settings.Can see all project progress'}}\n                      @description={{t\n                        'settings.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 'settings.Can manage all project progress'}}\n                        @description={{t\n                          'settings.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 'settings.Can see all documents'}}\n                      @description={{t 'settings.canSeeAllDocumentsDescription'}}\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 'settings.Can manage all documents'}}\n                        @description={{t\n                          'settings.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 'settings.Can see all products'}}\n                      @description={{t 'settings.canSeeAllProductsDescription'}}\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 'settings.Can manage all products'}}\n                        @description={{t\n                          'settings.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 'settings.Can make estimates'}}\n                      @key='canEstimate'\n                      @description={{t 'settings.canMakeEstimatesDescription'}}\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 'settings.canManageEstimateSettings'}}\n                      @key='canManageEstimateSettings'\n                      @description={{t\n                        'settings.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 'settings.Can see scheduling reports'}}\n                      @key='canViewSchedulingReports'\n                      @description={{t\n                        'settings.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 'settings.Can make scheduling changes'}}\n                      @key='canManageSchedulingReports'\n                      @description={{t\n                        'settings.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 'settings.Can see all timesheets and notes'}}\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                            'settings.Can manage all timesheets and notes'\n                          }}\n                          @description={{t\n                            'settings.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 'settings.Timesheet workers'}}\n                        @key='workers'\n                        @description={{t 'settings.timesheetWorkersDescription'}}\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                          'settings.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 'settings.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 'settings.Can manage all bills'}}\n                          @description={{t\n                            'settings.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 'settings.Can see all the purchase orders'}}\n                        @description={{t\n                          'settings.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 'settings.Can manage all purchase orders'}}\n                          @description={{t\n                            'settings.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 'settings.Can approve all purchase orders'}}\n                          @description={{t\n                            'settings.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 'settings.Can see all the stage payments'}}\n                        @description={{t\n                          'settings.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 'settings.Can manage all stage payments'}}\n                          @description={{t\n                            'settings.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 'settings.Can run payroll reports'}}\n                      @key='canViewPayrollReports'\n                      @description={{t\n                        'settings.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 'settings.Can use the report builder'}}\n                      @key='canUseReportBuilderReport'\n                      @description={{t\n                        'settings.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                          'settings.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                        }}\n                        <span class='fw-bold'>{{this.canViewReports}}</span>.\n                      {{else}}\n                        {{t\n                          'settings.withThesePermissionsThisUserCanNotSeeAnyReports'\n                        }}\n                      {{/if}}\n                    </span>\n                  </div>\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'settings.canSeeAllBudgetDataInReports'}}\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 'settings.Can see all quote data in reports'}}\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 'settings.canSeeAllCostDataInReports'}}\n                      @key='canViewCostFinancialReports'\n                      @description={{t\n                        'settings.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                        'settings.Can see all work value data in reports'\n                      }}\n                      @key='canViewChargeupReports'\n                      @description={{t\n                        'settings.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 'settings.Can see all progress data in reports'}}\n                      @key='canViewProgressReports'\n                      @description={{t\n                        'settings.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 'settings.canViewWorkers'}}\n                  @key='canViewWorkers'\n                  @description={{t 'settings.Lets users view workers'}}\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 'settings.canManageWorkers'}}\n                    @key='canManageWorkers'\n                    @description={{t 'settings.canManageWorkersDescription'}}\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 'settings.canViewUsers'}}\n                @key='canViewUsers'\n                @description={{t 'settings.canViewUsersDescription'}}\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 'settings.canManageUsers'}}\n                  @key='canManageUsers'\n                  @description={{t 'settings.canManageUsersDescription'}}\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 'settings.canManageIntegrations'}}\n                  @key='canManageIntegrations'\n                  @description={{t 'settings.canManageIntegrationsDescription'}}\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 'settings.Can view financials'}}\n                  @key='canViewFinancialReporting'\n                  @description={{t 'settings.canViewFinancialsDescription'}}\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 'settings.Can manage financials'}}\n                    @key='canManageFinancialReporting'\n                    @description={{t 'settings.canManageFinancialsDescription'}}\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 'settings.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t 'settings.canUseHealthAndSafetyDescription'}}\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 'settings.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'settings.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 'settings.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'settings.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"TtYhYQWx\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Saving user\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"settings.Create user\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can be a company administrator\\\"],null],\\\"isCompanyAdministrator\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can be a company manager\\\"],null],\\\"canManageEverything\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage all projects\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all tasks\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all tasks\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all project budgets\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all project quotes\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all project progress\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all project progress\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all documents\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all documents\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all products\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all products\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Can manage all bills\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all the purchase orders\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all purchase orders\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can approve all purchase orders\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all the stage payments\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage all stage payments\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Can run payroll reports\\\"],null],\\\"canViewPayrollReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can use the report builder\\\"],null],\\\"canUseReportBuilderReport\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                      \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageWorkers\\\"],null],\\\"canManageWorkers\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canViewUsers\\\"],null],\\\"canViewUsers\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageUsers\\\"],null],\\\"canManageUsers\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageIntegrations\\\"],null],\\\"canManageIntegrations\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can view financials\\\"],null],\\\"canViewFinancialReporting\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Can manage financials\\\"],null],\\\"canManageFinancialReporting\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"settings.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 'settings.Active workers'}}</si.option>\n          <si.option @value='all'>{{t 'settings.All workers'}}</si.option>\n          <si.option @value='inactive'>{{t\n              'settings.Inactive workers'\n            }}</si.option>\n        </SelectInput>\n      </span>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'settings.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 'settings.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\": \"PbiTOQGA\",\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],[\\\"settings.Active workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"settings.All workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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 'settings.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 'settings.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 'settings.Contact email'}}\n          @description={{t 'settings.contactEmailDescription'}}\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 'settings.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 'settings.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 'settings.Worker type'}}\n              @key='isContractor'\n              @options={{this.workerTypes}}\n              @description={{t 'settings.workerTypeDescription'}}\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 'settings.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 'settings.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 'settings.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                      {{t\n                        (concat\n                          'common.'\n                          'Effective '\n                          (convert-to-lowercase\n                            this.sessionData.entity.effectiveProfitMargin.labourPercentage.type\n                          )\n                        )\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 '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 'settings.Emergency contacts'}}</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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.Integrations'}}</h4>\n            {{#if (includes-feature-flags 'entityCanUseSmartPayroll')}}\n              <PtlInput\n                @type='text'\n                @label={{t 'settings.Smartly employee code'}}\n                @description={{t 'settings.smartlyEmployeeCodeDescription'}}\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 'settings.Smartly employee department code'}}\n                @description={{t\n                  'settings.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 'settings.Keypay employee code'}}\n                @description={{t 'settings.keypayEmployeeCodeDescription'}}\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 'settings.Xero employee'}}\n                @key='xeroEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t 'settings.xeroEmployeeDescription'}}\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 'settings.Reloading Xero employees'}}&hellip;\n                  {{else}}\n                    {{t 'settings.Reload Xero employees'}}\n                  {{/if}}\n                </button>\n              </div>\n  \n              <PtlInput\n                @type='powerSelect'\n                @label={{t 'settings.Xero earnings rate'}}\n                @description={{t 'settings.xeroEarningsRateDescription'}}\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 'settings.Reloading Xero earnings rates'}}&hellip;\n                  {{else}}\n                    {{t 'settings.Reload Xero earnings rates'}}\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 'settings.Deleting worker')\n                      (t 'settings.Disabling worker')\n                    }}&hellip;\n                  {{else}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'settings.Delete worker')\n                      (t 'settings.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 'settings.Saving worker'}}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.isNew\n                    (t 'settings.Create worker')\n                    (t 'settings.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 'settings.Enabling worker'}}&hellip;\n                {{else}}\n                  {{t 'settings.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 'settings.Permissions'}}</h3>\n            <p class='mb-4'>\n              {{t 'settings.workerPermissionsExplanation'}}\n            </p>\n  \n            <PtlInput\n              @type='checkbox'\n              @label={{t 'settings.Can see all projects and tasks'}}\n              @key='canSeeProjectsAndTasks'\n              @description={{t 'settings.canSeeAllProjectsAndTasksDescription'}}\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 'settings.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t 'settings.canUseHealthAndSafetyDescription'}}\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 'settings.Saving permissions'}}&hellip;\n                {{else}}\n                  {{t 'settings.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 'settings.Worker login code'}}</h3>\n          <p class='mt-0'>\n            {{t 'settings.workerLoginCodeExplanation'}}\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 'settings.Copied')\n                    (t 'settings.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 'settings.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 'settings.Generating new code'}}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.authCode\n                    (t 'settings.Generate new code')\n                    (t 'settings.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 'settings.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 'settings.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\": \"98KfoyyZ\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Contact email\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Worker type\\\"],null],\\\"isContractor\\\",[30,0,[\\\"workerTypes\\\"]],[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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,6],[[28,[37,18],[\\\"common.\\\",\\\"Effective \\\",[28,[37,19],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],null]],null]],null]],[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,21],[[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,18],[[28,[37,6],[\\\"common.Use default\\\"],null],\\\" \\\",[28,[37,21],[[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],[\\\"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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Smartly employee code\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Smartly employee department code\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Keypay employee code\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Xero employee\\\"],null],\\\"xeroEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Reloading Xero employees\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Xero earnings rate\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Reloading Xero earnings rates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Deleting worker\\\"],null],[28,[37,6],[\\\"settings.Disabling worker\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"settings.Delete worker\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Saving worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"settings.Create worker\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.Enabling worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Permissions\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Can see all projects and tasks\\\"],null],\\\"canSeeProjectsAndTasks\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"settings.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],[\\\"settings.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Worker login code\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"settings.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],[\\\"settings.Copied\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Generating new code\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[28,[37,6],[\\\"settings.Generate new code\\\"],null],[28,[37,6],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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\\\",\\\"concat\\\",\\\"convert-to-lowercase\\\",\\\"span\\\",\\\"number-format\\\",\\\"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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.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 'settings.profile.Manage health and safety'}}\n              </label>\n              <div class='form-text text-muted'>\n                {{t\n                  '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 'settings.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 'settings.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 'settings.Remove yourself from company'}}</h3>\n        <p>\n          {{t 'settings.ifYouChooseToDoThisYouWillNotBeAbleToAccess'}}\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 'settings.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 'settings.Current password'}}</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 'settings.New password'}}</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 'settings.Confirm password'}}</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\": \"QCrXuJqD\",\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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"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],[\\\"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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.Remove yourself from company\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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],[\\\"settings.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\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = missingMessage;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function missingMessage(key, locales) {\n    return `Missing translation: ${key} in ${locales}`;\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/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+63b44ba3\"});\n          }\n        \n"],"mappings":"AAAA;ACAAA,OAAA,gKAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAOA,IAAAC,EAAAC,EAAAC;AAEA,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,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B,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,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,OAC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,QAAA,EACA5b,MAAA,gBAEA,CACAviC,OAAA,OACAqiK,cAAAnjM,KAAA2V,KAAAnX,EAAA,iEACAygF,QAAA,EACA5b,MAAA,gBAEA,CACAviC,OAAA,OACAqiK,cAAAnjM,KAAA2V,KAAAnX,EAAA,+DACAygF,QAAA,EACA5b,MAAA,gBAEA,CACAviC,OAAA,OACAqiK,cAAAnjM,KAAA2V,KAAAnX,EAAA,gEACAygF,QAAA,EACA5b,MAAA,gBAEA,CACAviC,OAAA,OACAqiK,cAAAnjM,KAAA2V,KAAAnX,EAAA,4DACAygF,QAAA,EACA5b,MAAA,gBAEA,CACAviC,OAAA,OACAqiK,cAAAnjM,KAAA2V,KAAAnX,EAAA,wDACAslC,QAAA9jC,KAAA2V,KAAAnX,EAAA,kEACAygF,QAAA,EACA5b,MAAA,iBAGA0iB,MAAA,GACAjlD,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAAnjM,KAAA2V,KAAAnX,EAAA,oDACA,CACA+kM,QAAA,CACAD,aAAA,WACA/9L,UAEAu7B,OAAA,eACAylD,WAAA,EACAtH,QAAA,EACA5b,MAAA,eAEAzhC,UAAA,IACA,EACAd,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAqiK,cAAA,IACA,CACAriK,OAAA,OACAq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MAAA,QACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,EACAo6F,UAAA,qBAIAv7F,EAAAyqG,wBAAA,CACA51E,MAAA,4BACAw2E,mBAAA,EACAC,mBAAA,GAEAtrG,EAAA0qG,6BAAA,EACA71E,MAAA,oBACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,GACAo6F,UAAA,iBACA,CACA1mE,MAAA,iBACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,GACAo6F,UAAA,eACA,CACA1mE,MAAA,eACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,GACAo6F,UAAA,eACA,CACA1mE,MAAA,aACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,GACAo6F,UAAA,eACA,CACA1mE,MAAA,YACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,KACAo6F,UAAA,oBACA,CACA1mE,MAAA,gBACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,KACAo6F,UAAA,oBACA,CACA1mE,MAAA,QACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,EACAo6F,UAAA,qBAIAv7F,EAAA2qG,wBAAA,CACA91E,MAAA,4BACAw2E,mBAAA,EACAC,mBAAA,GAEAtrG,EAAA4qG,6BAAA,EACA/1E,MAAA,oBACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,GACAo6F,UAAA,iBACA,CACA1mE,MAAA,iBACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,GACAo6F,UAAA,eACA,CACA1mE,MAAA,eACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,GACAo6F,UAAA,eACA,CACA1mE,MAAA,aACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,GACAo6F,UAAA,eACA,CACA1mE,MAAA,QACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,EACAo6F,UAAA,oBACA,CACA1mE,MAAA,QACA22E,SAAA,EACAC,UAAA,EACAtqG,MAAA,EACAo6F,UAAA,oB;ACzIAx7F,OAAA,u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A,CACAA,KAAA,uBAEA,CACAA,KAAA,yBACA2K,MAAA,EACA3K,KAAA,mBACA,CACAA,KAAA,kBACA,CACAA,KAAA,kBACA,CACAA,KAAA,mBAEA,CACAA,KAAA,4BACA2K,MAAA,EACA3K,KAAA,eACA,CACAA,KAAA,YACA,CACAA,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,YAEA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,UACA,CACAA,KAAA,2DACA2K,MAAA,EACA3K,KAAA,mBAGA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,wBACA2K,MAAA,EACA3K,KAAA,YACA,CACAA,KAAA,eAEA,CACAA,KAAA,OACA2K,MAAA,EACA3K,KAAA,gBACA,CACAA,KAAA,aAEA,CACAA,KAAA,cACA2K,MAAA,EACA3K,KAAA,gBACA,CACAA,KAAA,iBAEA,CACAA,KAAA,gBACA2K,MAAA,EACA3K,KAAA,oBAGA,CACAA,KAAA,kBACA,CACAA,KAAA,QACA,CACAA,KAAA,gBAEA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,gBACA2K,MAAA,EACA3K,KAAA,yBACA2K,MAAA,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,CAC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